sharepoint online DisableCompanyWideSharingLinks

Copper Contributor

reposting Igor's question here as per MSFT's suggestion : 

"How can I disable the 'Share with entire organization' option globally for OneDrive and SharePoint in Microsoft 365? I've examined the documentation at https://learn.microsoft.com/en-us/microsoft-365/solutions/microsoft-365-limit-sharing?view=o365-worl... and discovered PowerShell commands such as 'Set-SPOSite -Identity https://contoso.sharepoint.com -DisableCompanyWideSharingLinks Disabled' for SharePoint sites and 'Set-SPOSite -Identity https://contoso-my.sharepoint.com/personal/my_alias_contoso_com -DisableCompanyWideSharingLinks Disabled' for OneDrives. The challenge is executing these commands for each site and user in our environment. Is there a method to apply this globally across the entire organization?


0 Replies