Forum Discussion
RobertFormodi
Feb 21, 2020Copper Contributor
Difficult to find which distribution group was assigned to which shared mailbox
I have hundred of distribution groups which functional as delegation groups for manage full access and send as permission for shared mailboxes. Is there any available powershell script or any which are able to
find or identify which distribution was assigned to which shared mailbox? Unfortunately from the original available exchange powershell commandlets like Get-MailboxPermission and Get-RecipientPermission I could not build any usable scripts for my problem. May I should use Outlook Rest API or EWS instead of powershell script?
Well what constitutes a "useful script" in your scenario? Basically you have to iterate over each mailbox and get the list of permissions, then display the full set in some shape or form. Here's a sample script: https://www.cogmotive.com/blog/powershell-scripts/office-365-permissions-inventory-full-access
- RobertFormodiCopper Contributor
VasilMichev, Yes I know this solution but I have a lot of stale delegation groups and need to know exactly which groups are in still used and have function and which not. Maybe I should query the all production shared mailboxes and collects their groups in a csv what you described. After that another script import this csv and would check data and create new csv with the really live shared mailboxes and their groups, thus the rest are the stale.
Well how do you tell which is "live" and which is "stale"?