1

I am wondering, if a Team has external sharing enabled, and I am site collection admin/owner of the team and the underlying site, can I disable external sharing? In my case external sharing is just adding complexity, all persons that requires the information already has access and the information is confidential so we do not want external sharing.

According to this article external sharing needs to be disabled both for the O365 group and the SharePoint site, but it also seems like tenant admin rights are required: https://laurakokkarinen.com/how-to-completely-disable-external-sharing-for-a-single-office-365-group/

Is tenant admin rights needed for disabling external sharing? Or can I do this as site collection admin, using PnP or CSOM?

1 Answer 1

0

You should be the global administrator of SharePoint. Try below PowerShell.

#Set Admin Center URL
$AdminCenterURL = "https://tenant-admin.sharepoint.com/"
$SiteURL="site collection URL"

#Connect to SharePoint Online
Connect-SPOService -url $AdminCenterURL -Credential (Get-Credential)

#Disable external sharing
Set-SPOSite $SiteURL –SharingCapability "Disabled"

Reference:

https://www.sharepointdiary.com/2017/05/how-to-disable-external-sharing-in-sharepoint-online.html

1
  • OP has asked to disbale external sharing on Teams, and your answer is to set it off on SharePoint site.
    – Asad Refai
    May 7, 2021 at 15:59

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.