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?


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 Salaudeen@Crescent.com

#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 :


|improve this answer|||||
  • Yes, except I had to use the switch -AddRole & -RemoveRole – Michael Colbs Jan 7 at 18:08

Set-PnPGroup would be the equivalent.

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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