When we login into sp online tenant site, we can see site coll admins of sites to which we donot have access. Is it possible to retrieve primary and secondary admin of all site collection without having to add a user account as administrator using powershell.

1 Answer 1


I’m afraid we can not get all administrator without a administrator account. I have tried with a full control account but it did not return any value.

Pnp powershell code for your reference:

$cred = Get-Credential
Connect-PnPOnline -Url https://contoso.sharepoint.com/sites/dev -Credential $cred

Download pnp powershell Here:


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.