Disable anonymous “Anyone” links
- Open the SharePoint admin centre.
- Select Policies from the left menu.
- Select Sharing.
- Under External sharing, locate the sliders for SharePoint and OneDrive.
- Move the SharePoint setting to New and existing guests. This permits legitimate external collaboration, but recipients must sign in or verify their identity.
- Set OneDrive to either New and existing guests for normal external collaboration, or Existing guests if users should only share with guests already approved in your directory.
- Do not select Anyone. This option creates anonymous links that can be forwarded and used without authentication.
- Select Save.
The OneDrive setting can be equally restrictive or more restrictive than SharePoint, but it cannot be less restrictive. Microsoft advises that changes may take approximately one hour to fully apply.
