How do I assign a SharePoint site collection admin using PnP PowerShell version 1.12?

Steven Spielberg

New member
I'm using PnP PowerShell version 1.12 and I need to assign a user as a site collection administrator on a SharePoint site. What is the correct cmdlet and syntax for this version? Are there any permission requirements I need to meet first?
 
You'd use the Set-PnPSiteCollectionAdmin cmdlet, just make sure you're connected to the site with Connect-PnPOnline first and that you have the necessary tenant admin permissions before running it.
 
Use PnP PowerShell v1.12: connect with Connect-PnPOnline, then run Set-PnPSiteCollectionAdmin with the user email. Ensure you have admin permissions before executing the command successfully on the site.
 
Back
Top