Forum Discussion
Cathrina_de_Lange
Apr 08, 2024Copper Contributor
Report showing all groups and all administrators of these groups?
Hi. Is it possible to get a report showing all groups and all administrators of these groups? If so, what is the name of the report? And what administrator rights do I need to create it?
1 Reply
Sort By
So all Viva Engage groups are M365 Groups, so to retrieve all groups you need to use powershell or something that can use graph:
Powershell:
[array]$YammerGroups = Get-UnifiedGroup -ResultSize Unlimited | Where-Object {$_.GroupSku -eq "Yammer"}
graph:
https://graph.microsoft.com/v1.0/groups?$filter=groupTypes/any(a:a eq 'unified')&$select=id,displayName,creationOptions,resourceProvisioningOptions&$top=999
Permission needed are:
Permission:
Directory.Read.All, Group.Read.AllIf you need help creating the full script, ping me 🙂