Set "Primary Site Collection Administrator"/Owner #2284
Replies: 4 comments 13 replies
-
I would also like an answer to this... I've tried the following but apparently it is a read only property. Guys, surely there is an answer here. $site = Get-pnptenantsite -url "siteurlhere" |
Beta Was this translation helpful? Give feedback.
-
Have you tried, after connecting to the site: |
Beta Was this translation helpful? Give feedback.
-
For Site collection admin use the appropriately named Add-PnPSiteCollectionAdmin while connected to the site
|
Beta Was this translation helpful? Give feedback.
-
So, there is still no way to do this? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Set-PnPTenantSite -Identity "https://contoso.sharepoint.com/sites/sales" -Owners "user@contoso.onmicrosoft.com"
This only adds additional "Site Collection Administrators" but leaves the owner untouched.
Set-SPOSite -Identity "https://contoso.sharepoint.com/sites/sales" -Owner "user@contoso.onmicrosoft.com"
This does what I want but I use a certificate for authentication and Connect-SPOService does not appear to support this yet.
Is there any other way to set the owner?
Beta Was this translation helpful? Give feedback.
All reactions