Forum Discussion
Björn Stahlberg
Jul 26, 2017Copper Contributor
Identifying groups that a user owns
Hi, We startet using Office 365 groups and I find it a bit confusing that a user can be either member, owner or both of a group in Office 365, while being owner basically seems to include the mem...
- Jul 26, 2017The only way now to get this view is by means of PowerShell...so you are basically correct: the UI does not provide a view where you can easily see members and owners of the Groups you have in your tenant
The only way now to get this view is by means of PowerShell...so you are basically correct: the UI does not provide a view where you can easily see members and owners of the Groups you have in your tenant
VasilMichev
Jul 26, 2017MVP
Just to add how to easily get the list of Groups for which a particular user is Owner:
Get-Recipient -Filter "ManagedBy -eq 'CN=user,OU=domain.onmicrosoft.com,OU=Microsoft Exchange Hosted Organizations,DC=EURPR03A001,DC=prod,DC=outlook,DC=com'" -RecipientTypeDetails GroupMailbox
where the long string in the Filter value is the DN (distinguished name) attribute of the user.
- TonyRedmondJul 30, 2017MVP
Most might not like to type in a distinguished name. To make this easier, extract the DN for a mailbox to a varible and use that in the filter.
$Dn = (Get-Mailbox -Id TRedmond).DistinguishedName
Get-Recipient -Filter "ManagedBy -eq '$DN'" -RecipientTypeDetails GroupMailbox
Unless of course you really like typing in long and complex strings...