Share via

Powershell Script to grab delegate and calender permissions for all users in an organization and export to CSV

Anonymous
2018-04-04T14:35:33+00:00

Currently I can use a command get-MailboxFolderPermission -Identity email@domain:\Calendarand get the sharing permissions for an individual account and check sharing properties each user has to the email@domain. 

Is there a script I can run to target an entire organization to find these properties and export to a CSV?

Is there a script that can do the same but target delegates of a mailbox?

Thank you.

Microsoft 365 and Office | Subscription, account, billing | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2018-04-04T19:07:33+00:00

This depends on what you understand by delegates. The script above will list any users that have been granted any permissions on the Calendar (or any folder) in user's mailboxes. The actual "Delegate" flag is not visible via PowerShell, you will have to use some EWS based script for that. Here's one: http://www.flobee.net/powershell-module-for-managing-exchange-2010-mailbox-delegates/

Was this answer helpful?

0 comments No comments

3 additional answers

Sort by: Most helpful
  1. Anonymous
    2018-04-08T02:33:11+00:00

    Hi Adamarr2018,

    May I ask if you have further questions and concerns regarding PowerShell script? Feel free to let us know if you need further assistance.

    Regards,

    Leo

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2018-04-04T18:23:13+00:00

    Thank you very much for your reply.

    Is there a specific option that I could try to grab the delegates of each mailbox and export it or was it somewhere in this script as well?

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2018-04-04T16:30:30+00:00

    I've published some similar scripts on the TechNet Gallery. This one will list all Calendar folder permissions: https://gallery.technet.microsoft.com/Office-365-Calendar-29ef6211?redir=0

    This one will generate a list of all the folder permissions: https://gallery.technet.microsoft.com/Office-365-Mailbox-Folder-17251cab?redir=0

    Feel free to edit them to better match your requirements.

    Was this answer helpful?

    0 comments No comments