Categories

PROBLEM STATEMENT:


How do I see all the mailboxes a user has access to in M365.


SOLUTION:


In this article we will learn how we can view all the Mailboxes a User has access to, using PowerShell and CoreView.


1. Using PowerShell:


You can use the PowerShell command to list all the mailboxes a user has access to in Office 365. Here are the steps to do so:


  • Open the Windows PowerShell as an administrator.


  • Connect to your Office 365 account by running the following command:


Connect-ExchangeOnline -UserPrincipalName <UPN> -ShowProgress $true
  • Replace <UPN> with the user's UPN (User Principal Name).


  • Run the following command to list all the mailboxes the user has access to:


Get-Mailbox -ResultSize Unlimited | Get-MailboxPermission -User <UPN> | Where-Object { $_.AccessRights -like "*FullAccess*" } | Select-Object Identity
  • Replace <UPN> with the user's UPN (User Principal Name).


  • This command will list all the mailboxes the user has access to with full access. If you want to include mailboxes with other types of access, you can remove the Where-Object filter.


2. Using CoreView


You can use CoreView to view all the mailboxes a User has access to. Kindly follow below steps to do so:


  • Login to CoreView Portal
  • Under Reports --> Select Security --> Choose 'User Mailbox Security'.



  • Here apply filter on "Users with access" column with the UPN of the user you want to see all the mailbox access for:
  • This will show all the Mailboxes with access rights for the selected user.



'Full Name' , 'User Principal Name' & 'Primary SMTP address' columns are details of of the Mailboxes user has access to. 'Access rights' column indicates the level of access user has to the respective mailbox