Disable Organization-Wide Sharing Links in SharePoint Online
Question details
The user wants to prevent contributors from creating organization-wide sharing links for a SharePoint site.

- Product
- SharePoint Online
- Device & OS
- not provided
- Scenario
- A SharePoint administrator wants to limit broad link-based access to content on a site.
- Observed behavior
- Contributors may be able to create links that allow people in the organization to access shared content.
Identify the affected site URL and have a SharePoint administrator account ready. Install or update the SharePoint Online Management Shell and identify your tenant's SharePoint admin URL.
Disable organization-wide links for the SharePoint site
Use SharePoint Online PowerShell to restrict organization-wide sharing links on the affected site.
Open the SharePoint Online Management Shell and run Connect-SPOService -Url https://<tenant>-admin.sharepoint.com. Replace <tenant> with your tenant name and sign in with an administrator account.
Run Set-SPOSite -Identity <site> -DisableCompanyWideSharingLinks, replacing <site> with the full URL of the affected SharePoint site.
Open the affected site, select a file, and choose Share > Link settings. Check that an organization-wide link is no longer available to create.
In the SharePoint admin center, open Sites > Active sites, select the site, and review its Sharing settings. Also review Policies > Sharing for organization-level restrictions.

Edit Office files with WPS Office
WPS Office is a free, lightweight alternative with a familiar interface and compatibility with common Microsoft Office formats, making it easier to move existing documents into a different editing workflow. It does not change SharePoint sharing policies.

Frequently Asked Questions
Does changing the default link type disable organization-wide links?
No. A default link type changes the option initially presented in the Share dialog; it does not necessarily prevent users from choosing another available link type. Use the site restriction and check Share > Link settings.
Will disabling organization-wide links remove existing links?
Do not assume existing links are removed. For sensitive files, open Share > Manage access and review or remove links and permissions that should no longer be available.
Where can I review a site's sharing settings?
In the SharePoint admin center, go to Sites > Active sites, select the site, and open its Sharing settings. Organization-level controls are available under Policies > Sharing.
Does an organization-wide link automatically grant access to everyone?
An organization-wide link can allow eligible people in the organization who have the link to access the shared content. It is different from granting everyone direct site membership.




