Forum Discussion
luanoprz
Jul 08, 2023Copper Contributor
Exchange Berechtigung Mailbox PowerShell
ich möchte gerne ein Azure PowerShell Runbook bauen, indem Berechtigungen für SharedMailbox gesetzt bzw. entfernt werden. Die Berechtigungsvergabe erfolgt über Sicherheitsgruppen. Das Skript soll al...
kevkelly
Jul 08, 2023MCT
The User parameter of cmdlet Add-MailboxPermission supports Mail-enabled security groups, so for assigning FullAccess your PowerShell would look something like:
Add-MailboxPermission -Identity <mailbox> -User <mail_enabled_security_group> -AccessRights FullAccess
Take note that using a mail-enabled security group means that the auto-mapping feature won't automatically add the mailbox to in Outlook for the group members
For granting SendOnBehalf permissions, you would need to the Set-Mailbox cmdlet and the parameter GrantSendOnBehalfTo:
Set-Mailbox -Identity <mailbox> -GrantSendOnBehalfTo <mail_enabled_security_group>