Skip to content

Instantly share code, notes, and snippets.

@pkbullock
Last active September 16, 2018 20:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pkbullock/e41e2e5ff76abbbfb6a5112c92d5a6cc to your computer and use it in GitHub Desktop.
Save pkbullock/e41e2e5ff76abbbfb6a5112c92d5a6cc to your computer and use it in GitHub Desktop.
Lowers the standard permissions to contributors
# See full script at:
# https://github.com/CaPa-Creative-Ltd/SharePoint-Recipes/blob/master/Recipes/Document-Management/Set-LowerSiteMembersPermissions.ps1
Connect-PnPOnline -Url "https://<tenant>.sharepoint.com"
$membersGroup = Get-PnPGroup -AssociatedMemberGroup
Set-PnPGroupPermissions -Identity $membersGroup -RemoveRole "Edit" -AddRole "Contribute"
Write-Host "Done! :-)" -ForegroundColor Green
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment