Need the command to run o exchange 2013 to allow one user access to another users many mailboxes

vmich used Ask the Experts™
I have a user that needs to have access to another users many email addresses that she has.
So I need the command to run on the exchange 2013 server that I can give user A access to users Bs many email addresses so that she can see them?
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Exchange Engineer
Distinguished Expert 2018
You can run the below cmdlet in the Exchange Management shell, and set the permissions. After about 30 minutes or so, user B mailbox will show up in User A outlook profile and can have access to the mail.

Add-MailboxPermission -Identity "user B" -User "user A" -AccessRights FullAccess -InheritanceType all
Here is an article that shows the complete procedure: How to grant full access permissions to all users’ mailboxes using PowerShell
@timgreen7077 sorry for cross-posting.


Ok so this command will give user A full access to all of users Bs email addresses but how could I run the command if I only want user A to have access to just a couple of the mailboxes and not all of them?
timgreen7077Exchange Engineer
Distinguished Expert 2018

this will give access to only one mailbox, so if use b has multiple mailboxes, just use the user name or email address of her b that you want user A to access.
FOXActive Directory/Exchange Engineer
Top Expert 2015

Another thing you can do is list all the emailaddress you want User A to have access to in a .csv file and run the command that way as well.
1. Create a folder named Temp on your c;drive    
2. Create your list with a header of emailaddresses  name it Emailaddresses.csv   and it should be in C:\temp  
Example of the .csv file

command below

Import-csv 'c:\temp\emailaddresses.csv' | %{Add-MailboxPermission $_.EmailAddresses -User 'emailaddressofUserA' -AccessRights FullAccess}

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial