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

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?
LVL 1
vmichAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

timgreen7077Exchange EngineerCommented:
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
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
CodeTwo SoftwareSoftware DeveloperCommented:
Here is an article that shows the complete procedure: How to grant full access permissions to all users’ mailboxes using PowerShell
edit
@timgreen7077 sorry for cross-posting.
0
vmichAuthor Commented:
Timgreen,
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?
0
timgreen7077Exchange EngineerCommented:
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.
0
FOXActive Directory/Exchange EngineerCommented:
Vmich,
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
Emailaddresses
address1@yourdomain.com
address2@yourdomain.com

command below

Import-csv 'c:\temp\emailaddresses.csv' | %{Add-MailboxPermission $_.EmailAddresses -User 'emailaddressofUserA' -AccessRights FullAccess}
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Exchange

From novice to tech pro — start learning today.