Get list of owners of a classic SharePoint site #4841
Unanswered
munrobasher
asked this question in
Q&A
Replies: 1 comment
-
I'm also fighting with this situation (legacy/migrated sharepoint sites). Super curious to hear if anyone has ideas here. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to write a script that lists the owners of all sites. I'm enumerating through all sites using this:
ForEach ($Site in Get-PnPTenantSite) {...}
For M365 groups, I've got the owners bit working:
However, I'm struggling with how to get the list of owners for a classic non-M365 site. I need to enumerate through the equivalent of this report from site permissions, i.e. look for each group/user with "Full control".
Although I've found that the "Site permissions" window doesn't give the full story and that the "Site access" window often has a different list of users. For example JE is shown her as owner in site access but doesn't appear anywhere in site permissions.
Beta Was this translation helpful? Give feedback.
All reactions