Export a list of all Mailbox Permissions in Office 365 using Powershell
This Powershell script will connect to Office 365 and export all mailbox permissions to a CSV file.
If you’re short on time and need this information regularly, we recommend that you try our Office 365 Reporting software.
The script only collects permissions that are non-standard, so it won’t pick up the built in groups like Administrators making for a cleaner and more relevant report.
The script accepts three parameters:
- Your Office 365 Administrator Username
- Your Office 365 Administrator Password
- An input file path (optional)
When you run the script without an input file specified it will connect to Office 365 and collect the mailbox permissions for all mailboxes in the tenant. It will output those to a file called MailboxPerms.csv with the following format.
We have uploaded the script to the Microsoft Script Repository for you to download here.