Forum Discussion
Anonymous
Nov 13, 2018Can you limit share functionality?
As an organization we limit who has access to what on specific sites and control the permissions using O365 groups. It seems that the share allows employees to get around this functionality. While we...
Nov 13, 2018
Here is the article for the sharing features. Keep in mind the SharePoint one trumps the oneDrive setting, so if you don't want to affect onedrive you will have to do it individually across the board using the New SharePoint UI, but preferably, you would have to script it so that all your sites get updated on a routine basis so new sites cannot share.
https://docs.microsoft.com/en-us/onedrive/manage-sharing
The Powershell is Set-SPOSite -Identity $siteCollectionURL -SharingCapability ExternalUserSharingOnly but you would have to get creative with getting all your objects using get-sposite and filter based on URL search etc. so you don't overwrite sites you don't want to change.
https://docs.microsoft.com/en-us/onedrive/manage-sharing
The Powershell is Set-SPOSite -Identity $siteCollectionURL -SharingCapability ExternalUserSharingOnly but you would have to get creative with getting all your objects using get-sposite and filter based on URL search etc. so you don't overwrite sites you don't want to change.