Forum Discussion
DanielClaassen
Jun 27, 2023Brass Contributor
Disable "Allow Members to share the site and individual files and folders" for all sites
Hi
We've got quite a few sites where lots of files were shared causing broken inheritance on a file level.
I want to disable the following 2 checkboxes for all sites:
Allow Members to share the site and individual files and fold
Allow Members to Invite others to the site members groupers
I'm looking for a Powershell script to cycle through 264 Team Sites and uncheck those 2 options.
Or maybe there are some more suggestions.
The problem I'm trying to solve is lots of files with broken inheritance from users that used the share button to share files.
I am going to run this as well to change the default sharing method to "people with existing access"
Set-SPOSite -Identity $SiteURLHere -DefaultLinkToExistingAccess $true
Finding it hard to believe that breaking inheritance on files/folders so easily can be expected and default behavior?
Thank You
No RepliesBe the first to reply