question

RogerRoger-2394 avatar image
0 Votes"
RogerRoger-2394 asked KyleXu-MSFT commented

Shared Mailbox permissions

Hi All

i have 10 users and i want to provide access to shared mailbox. i have the csv file in the below format. i am using exchange 2016 hybrid environment, some shared mailboxes are created onprem and migrated to cloud, some are remote shared mailboxes creating from onprem.

Users
user1@contoso.com

is the below syntax correct and in the below syntax is -Confirm:$false correct i get the confirmation Yes/No/A when adding manually, will -Confirm:$false take the option A

 $UserList = import-csv C:\temp\list.csv 
 ForEach ($User in $UserList)
 {
 Add-MailboxPermission -Identity sharedmailbox@contoso.com -User $user.Users -AccessRights FullAccess -InheritanceType All -AutoMapping $True
 Add-RecipientPermission sharedmailbox@contoso.com -AccessRights SendAs -Trustee $user.Users -Confirm:$false
 Set-Mailbox -Identity sharedmailbox@contoso.com -GrantSendOnBehalfTo $user.Users -Confirm:$false
 }
office-exchange-server-administrationoffice-exchange-online-itprooffice-exchange-hybrid-itpro
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Any update about this thread now

0 Votes 0 ·

1 Answer

KyleXu-MSFT avatar image
0 Votes"
KyleXu-MSFT answered KyleXu-MSFT commented

@RogerRoger-2394

Based on my testing, there doesn't exist issue with it. If you still get confirmation, try to add "-Confirm:$false" to this below one(Based on my testing, you don't need to add it).

Add-MailboxPermission -Identity sharedmailbox@contoso.com -User $user.Users -AccessRights FullAccess -InheritanceType All -AutoMapping $True

If you get an error, please provide a screenshot about it. The screenshot will help us to narrow down that issue.


If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@RogerRoger-2394
I am writing here to confirm with you any update about this thread now?
If the above suggestion helps, please be free to mark it as an answer for helping more people.

0 Votes 0 ·