Last active
September 16, 2018 20:41
-
-
Save pkbullock/e41e2e5ff76abbbfb6a5112c92d5a6cc to your computer and use it in GitHub Desktop.
Lowers the standard permissions to contributors
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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