How to list all user’s group membership in 365

Just use this as it accounts for 365 Groups now as well : https://o365reports.com/2019/05/23/export-office-365-distribution-group-members-csv/

 

******
Get Distinguished Name:

get-Mailbox [Username] | fl Name,Distinguishedname

Groups:

get-group -ResultSize Unlimited -Filter ‘Members -eq “[User Distinguished Name]”‘

Distribution Groups:

Get-DistributionGroup -ResultSize Unlimited -Filter ‘Members -eq “[User Distinguished Name]”‘

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...