How to Restrict SharePoint Sharing to People with Existing Access
Question details
Users want to restrict SharePoint Online sharing options so that 'People with Existing Access' is the only link type available when sharing a document or folder.

- Product
- SharePoint Online
- Device & OS
- not provided
- Scenario
- Tightening document security and preventing oversharing by limiting the available sharing link options for end-users.
- Observed behavior
- SharePoint Online currently lacks an out-of-the-box user interface setting to strictly enforce 'People with Existing Access' as the sole sharing link option.
Ensure you have SharePoint Administrator privileges and have installed the latest version of the SharePoint Online Management Shell if you plan to implement PowerShell scripts.
Use PowerShell Workarounds for Sharing Restrictions
Since there is no direct graphical interface setting to exclusively allow 'Existing Access' links, administrators must use PowerShell to modify default link types and restrict guest sharing.
Microsoft currently does not provide a native toggle to remove all sharing options except 'People with existing access'. However, you can mitigate oversharing by setting the default sharing link to 'Existing Access' and aggressively restricting other link types via PowerShell.
Launch the SharePoint Online Management Shell as an administrator on your PC.
Run the command 'Connect-SPOService -Url https://[yourtenant]-admin.sharepoint.com' and log in with your global or SharePoint admin credentials.
Execute the command 'Set-SPOSite -Identity https://[yourtenant].sharepoint.com/sites/[sitename] -DefaultSharingLinkType None' to force users to manually select their intended sharing scope, prioritizing existing permissions.
If you wish to prevent any external sharing, use 'Set-SPOSite -Identity [URL] -SharingCapability Disabled' to lock down the site.

Manage Document Sharing Effortlessly with WPS Office
If navigating complex SharePoint permissions and PowerShell scripts is slowing down your workflow, consider using WPS Office for your local and cloud document needs. It provides an intuitive, lightweight environment for creating, editing, and securely sharing your files.
- 1. Download and Install: Get the free WPS Office suite from the official website and install it on your device.
- 2. Open Your Office Files: Launch WPS Office and open your existing Microsoft Office documents without losing any formatting.
- 3. Share Securely: Use the built-in sharing tools to generate links with specific expiration dates and access permissions.

Frequently Asked Questions
What does 'People with existing access' mean in SharePoint?
This sharing option generates a link that only works for users who already have permissions to view or edit the file or folder. It ensures that no new access rights are granted to unauthorized users.
Why is 'People with existing access' not the default sharing option?
By default, Microsoft often sets 'People in your organization' as the primary link type to facilitate broader internal collaboration. However, administrators can alter this default setting globally or per site.
Can I remove the 'Anyone' link option completely?
Yes. A SharePoint Administrator can disable 'Anyone' (anonymous) links at the tenant or site level through the SharePoint Admin Center's sharing settings.




