Read and add mailbox permissions in Office 365 / Exchange Online with PowerShell

This article shows how you can read and add mailbox permission in Office 365 / Exchange Online using PowerShell.

References

Read mailbox permissions


  1. Connect with PowerShell to Office 365 / Exchange Online

  2. Use the following command to get mailbox permissions:
    get-mailboxpermission "username"
    Replace "username" with the desired user name.

Add mailbox permissions


  1. Connect with PowerShell to Office 365 / Exchange Online

  2. Use the following command to add mailbox permissions:
    add-mailboxpermission -Identity "mailbox" -User "admin" -AccessRights FullAccess
    Replace "mailbox" with the desired mailbox and admin with the desired user account.
    Please note: If an admin account is used for migrating mailboxes, the admin accounts requires full access on the mailbox.