Forum Discussion
DiVojich
May 15, 2020Brass Contributor
Group owner
Hi guys,
I would require advice on PS cmdlet.
I need to find out & export a list of O365 groups that are owned by 1 specific user.
All groups are cloud-only.
I imagined it will go something like:
Get-UnifiedGroup | WhereObject eq. managed by....
Kind regards
2 Replies
Server-side filtering is always a better approach:
Get-Recipient -Filter "ManagedBy -eq 'CN=user,OU=tenant.onmicrosoft.com,OU=Microsoft Exchange Hosted Organizations,DC=EURPR03A001,DC=prod,DC=outlook,DC=com'" -RecipientTypeDetails GroupMailboxwhere you have to provide the DN of the user you want to check against.
- Manfred101Iron Contributor
DiVojich Take a look at https://github.com/MicrosoftDocs/office-docs-powershell/issues/1668
Good luck!
Grtz, Manfred