I have a situation where I need to have external sharing enabled on SharePoint online tenant level but not on all the sites that get created. Currently all the sites that gets created has external sharing enabled by default. I only need certain site to have that ability. I cannot manually check all the newly created sites everyday.

1 Answer 1


1.Sort by the 'Data Created' column (Newer to Older), then manually change the sharing settings. Date created Only People

2.You could use PowerShell to restrict sharing settings on individual SharePoint sites.

#Set Admin Center URL
$AdminCenterURL = "https://crescent-admin.sharepoint.com/"
#Connect to SharePoint Online
Connect-SPOService -url $AdminCenterURL -Credential (Get-Credential)
#Disable external sharing
Set-SPOSite $SiteURL -SharingCapability "Disabled"

Reference:How to Disable External Sharing in SharePoint Online?

  • I’m checking how the things are going on about this issue. Is there any progress on this thread? Whether the answer helps you?
    – Xuyan Ding
    Jul 27, 2022 at 10:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.