1

Can someone share the query to get Site owner and site collection manager information from all sites and sub-sites in a SharePoint 2013 site collection?

2
  • what you mean by site collection manager?
    – Waqas Sarwar MVP
    Commented Mar 11, 2016 at 3:50
  • I mean site collection administrator.
    – MSKP
    Commented Mar 11, 2016 at 16:22

1 Answer 1

0

Assuming by "site collection manager" you mean "site collection administrator" then this script should do the trick to help you identify content owners: http://techtrainingnotes.blogspot.com/2014/11/sharepoint-use-powershell-to-get-all.html?m=1 Per the above script, this will get you all owners:

Get-SPSite -Limit All | 
Get-SPWeb -Limit All | 
where { $_.HasUniquePerm -and $_.AssociatedOwnerGroup -ne $null } | 
foreach { $TTNweburl = $_.Url; $_ } | 
Select -ExpandProperty AssociatedOwnerGroup | 
Select -ExpandProperty Users | 
Select {$TTNweburl}, UserLogin, DisplayName
4
  • 1
    Please avoid just posting a link as an answer. You should cite the relevant parts of the linked content in case the link breaks or the linked site goes down.
    – jcp
    Commented Mar 11, 2016 at 10:34
  • 1
    Thanks for the feedback. I'll improve my answers, but as a fellow blogger, I'd much rather send the asker to the author than copying and pasting parts of the author's post here. Thoughts? Commented Mar 11, 2016 at 10:40
  • thanks for the response but I am looking for all sites/sub-sites owner information not all users having full control permission. can you provide if you have any script or suggestion.
    – MSKP
    Commented Mar 11, 2016 at 16:24
  • The first script from the link gives you all owners..I've added it to my answer above. Commented Mar 13, 2016 at 10:26

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.