Sharing content is quite common and there are multiple ways to do sharing. In SharePoint we have option to share content within team members, with the members of organization and also with external users.

External users are not part of the organization but content can be shared with them and there are multiple ways. You can share content/ documents with anonymous users which do not require authentication and can also share content with external users but they need authentication on the system. Or there is another way of external sharing where you can share the content to any specific organization(s), this is required in scenarios where you need to share content with customers or vendors or any other business partners.

How to do External Sharing?

In this blog, I am taking going to explain you that how to share document to external users using SharePoint Admin center and Power Shell. External sharing can be enabled at the SharePoint Admin Center level and can also be managed at the site collection level but for Site collection level is dependent on SharePoint Admin center.

SharePoint Admin Center:

Go to SharePoint Admin Center and expand Policies form left navigation pane and click on Sharing. You will see the options for External Sharing on the page. Change the sharing settings as per your organization policy. You can also restrict the external Sharing to specific domains and can also can also setup the default sharing options for all site collections.

External Sharing setting for Site Collection

Site collection external sharing setting is dependent on SharePoint Admin Center sharing policy. If external sharing is disabled then you can not change the external sharing at site collection level.

Go to Active sites, select the site collection for viewing details and click on Policies.

You can see the edit button under External Sharing, click on it and you will get the options change the external sharing settings.

Now questions comes in mind that why you need this at site collection level?  There are scenarios where you might need to share the site with specific vender or partner OR you want to disable external sharing for a site collection where you could have some secure content.

External Sharing using PowerShell

You can setup the external sharing SharePoint Admin Center and site level using powershell. You have seen four options available for external sharing in above section. Similar options available in PowerShell

Connect-SPOService -Url

#1 - ExternalUserAndGuestSharing – sets the permission level to Anyone
#2 - ExternalUserSharingOnly – sets the permission level to New and Existing guests
#3 - ExistingExternalUserSharingOnly – sets the permission level to Existing guests
#4 - Disabled – sets the permission level to Only people in your organization

#For Tenant level
Set-SPOTenant -SharingCapability <PermissionLevel>

Set-SPOTenant -SharingCapability ExternalUserSharingOnly

#For site level
Set-SPOSite -Identity <site collection url> -SharingCapability <PermissionLevel> 

$siteCollection = “”  
Set-SPOSite -Identity $siteCollection -SharingCapability Disabled 

Adnan, a distinguished professional, boasts an impressive track record as a Microsoft MVP, having achieved this prestigious recognition for the eighth consecutive year since 2015. With an extensive career spanning over 18 years, Adnan has honed his expertise in various domains, notably excelling in SharePoint, Microsoft 365, Microsoft Teams, the .Net Platform, and Microsoft BI. Presently, he holds the esteemed position of Senior Microsoft Consultant at Olive + Goose. Notably, Adnan served as the MCT Regional Lead for the Pakistan Chapter from 2012 to 2017, showcasing his leadership and commitment to fostering growth within the tech community. His journey in the realm of SharePoint spans 14 years, during which he has undertaken diverse projects involving both intranet and internet solutions for both private and government sectors. His impact has transcended geographical boundaries, leaving a mark on projects in the United States and the Gulf region, often collaborating with Fortune 500 companies. Beyond his roles, Adnan is a dedicated educator, sharing his insights and knowledge as a trainer. He also passionately advocates for technology, frequently engaging with the community through speaking engagements in various forums. His multifaceted contributions exemplify his dedication to the tech field and his role in driving its evolution.

Leave a Reply