Get a List of Mailboxes a User Has Access in Office 365

Get a List of Mailboxes a User Has Access in Office 365, in this article, you will get steps to steps process of how to Get a List of Mailboxes a User Has Access in Office 365 using Powershell.

Get a List of Mailboxes a User Has Access in Office 365


To follow the steps outlined in this article, ensure that you have the following:

  1. A Windows computer equipped with PowerShell.
  2. Administrative access to the Exchange environment.
  3. Basic familiarity with PowerShell commands and Exchange Management Shell.

Get a List of Mailboxes a User Has Access in Office 365

Step 1: Launch PowerShell

Commence by launching PowerShell on your computer. You can do this by searching for “PowerShell” in the Start menu or by using the “Run” dialog (Win + R) and entering “PowerShell”. Remember to open PowerShell with administrative privileges.

Step 2: Establish a Connection to Exchange Management Shell

To interact with Exchange through PowerShell, establish a connection to the Exchange Management Shell. Execute the following command:

Connect-ExchangeOnline -UserPrincipalName

Replace with the user account for which you wish to list the mailboxes.

Step 3: Retrieve Mailbox Access

Once connected to the Exchange Management Shell, utilize the Get-MailboxPermission the cmdlet to obtain information about mailbox access for a specific user. Execute the following command:

Get-MailboxPermission -User | Select Identity, AccessRights

Again, substitute with the desired user account. This command retrieves the mailbox permissions for the specified user and displays the mailbox identities alongside the corresponding access rights.

Step 4: Analyze the Results

Upon executing the command, a list of mailboxes that the user has access to, along with their associated access rights, will be displayed. The access rights may encompass permissions such as FullAccess, SendAs, and SendOnBehalf.

The output might resemble the following:

Identity                     AccessRights
--------                     ------------
Mailbox1                     {FullAccess}
Mailbox2                     {FullAccess, SendAs}
Mailbox3                     {ReadPermission}

n the above example, the user “” possesses FullAccess to Mailbox1, FullAccess and SendAs permissions to Mailbox2, and ReadPermission for Mailbox3.

Step 5: Further Customization (Optional)

To refine the results according to specific criteria, you can customize the command. For instance, you can filter the output to exclusively include mailboxes with particular access rights or format the output differently using PowerShell’s diverse set of cmdlets.

By using above cmdlets you can Get a List of Mailboxes a User Has Access in Office 365


PowerShell offers a powerful and adaptable approach to managing Exchange environments. By utilizing the Get-MailboxPermission cmdlet, administrators can effortlessly determine the mailboxes to which a user has access. This information proves invaluable for diverse administrative tasks, security audits, and compliance requirements. By following the steps outlined in this article, you can swiftly retrieve the list of mailboxes accessible to a user using PowerShell, equipping you with essential insights to effectively manage your Exchange environment.

Visit to check more article

Leave a Reply

Your email address will not be published. Required fields are marked *

twelve − nine =