My goal is to restrict access on my web excel documents from outside my organization.
This works fine on all my OneDrive files except the ones I'm sharing anonymously.
For example I have a document on my drive that I'm sharing with a link. Any authorized person with a link can view it until I restrict IP addresses. After that it is no longer accessible outside the organization
Now same document, same restrictions, but this time I shared it with "anyone with the link" option
Network restrictions did not affect this type of sharing and I was still able to access it outside specified IP range.
Is there any workaround I can use to still restrict such cases? So any shared link follows same restrictions put on my access control.