I'm trying to programmatically change the default permission level from Edit to Contribute on the Members group.

connect-sposervice https://<tenant>-admin.sharepoint.com

Set-SPOSiteGroup -Site https://<tenant>.sharepoint.com/sites/EQD96 -identity "Projects Members" -PermissionLevelsToRemove "Edit" -PermissionLevelsToAdd "Contribute"

When using PnP cmdlets, it doesn't prompt me to login every time. Is there a known equivalent of this cmdlet?


2 Answers 2


It is Set-PnPGroup

Example: Change Group Owner using PnP PowerShell

#Config Variables
$SiteURL = "https://crescenttech.sharepoint.com/Sales"
$GroupName="Sales Portal Members"
#Group owner variable: Can be existing group or user account Email
$GroupOwner = "Sales Portal Owners" #or [email protected]

#Connect PNP Online
Connect-PnPOnline -Url $SiteURL -Credentials (Get-Credential)

#Set Group Owner
Set-PnPGroup -Identity $GroupName -Owner $GroupOwner

For details please refer the below URL :


  • Yes, except I had to use the switch -AddRole & -RemoveRole Commented Jan 7, 2020 at 18:08

Set-PnPGroup would be the equivalent.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.