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
- Manfred101Iron Contributor
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 GroupMailbox
where you have to provide the DN of the user you want to check against.