Forum Discussion
Getting shared mailboxes with no delegates in Powershell
Hi,
I'm quite new to powershell and am just wondering if there's a way to get all of the shared mailboxes in Office 365 that haven't got any delegates on them?
Thanks
Salim
10 Replies
Delegates can have a different meaning, are you referring to granting mailbox-level access (Full access) or folder-level access? For both of these scenarios you can easily use PowerShell to get a list of "undelegated" mailboxes, but the cmdlets you will have to use are a bit different.
- Salim_95Copper ContributorI'm referring to shared mailboxes that are just sitting there with nobody having access to them whatsoever. Just need to clear out shared mailboxes that aren't being used.
Hm, for this scenario perhaps a better way will be to do a message trace instead? I mean you might have shared mailboxes that nobody can access (no permissions granted), however they might still be receiving messages, isn't thing something you want to account for?
- Hi!
I’m not able to write anything right now but I found maybe a little workaround script in this post here:
https://social.technet.microsoft.com/Forums/en-US/c4372940-51c6-4c72-8414-424793fd9ac0/list-shared-mailbox-with-no-users-assigned-no-delegates?forum=onlineservicesexchange
Adam- Salim_95Copper Contributor
adam deltinger wrote:
Hi!
I’m not able to write anything right now but I found maybe a little workaround script in this post here:
https://social.technet.microsoft.com/Forums/en-US/c4372940-51c6-4c72-8414-424793fd9ac0/list-shared-mailbox-with-no-users-assigned-no-delegates?forum=onlineservicesexchange
AdamHi Adam,
Thanks for that I'll give it a try!