Sometimes you should need to check what mailbox a user has full access The command below will help you get all users and check the access rights.
Connect to Microsoft 365 using PowerShell
Connect-MsolService
Switch the [email protected] before executing the code
get-mailbox -ResultSize unlimited | Get-MailboxPermission -User [email protected] | select identity, user, accessrights