Group owner

Brass Contributor

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

@DiVojich Take a look at this issue

 

Good luck!

Grtz, Manfred

 

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.