Add shared mail full access to room powershell
To add the "Shared Mail Full Access" permission to a room in PowerShell, you can use the following command:
Add-MailboxPermission -Identity <RoomMailboxName> -User <UserPrincipalName> -AccessRights FullAccess -InheritanceType All
Here:
<RoomMailboxName>
is the name of the room mailbox you want to add the permission to.<UserPrincipalName>
is the UPN of the user you want to grant the permission to.FullAccess
specifies the level of access you want to grant (in this case, full access).All
specifies that you want to apply the permission to all folders in the mailbox.
For example:
Add-MailboxPermission -Identity "Conference Room" -User "[email protected]" -AccessRights FullAccess -InheritanceType All
This command grants the user "[email protected]" full access to the "Conference Room" mailbox.
Note: You need to run this command in the Exchange Management Shell, not in the regular PowerShell console.
Also, you can use the Get-MailboxPermission
cmdlet to verify the permissions on the mailbox:
Get-MailboxPermission -Identity "Conference Room"
This will show you the current permissions on the mailbox, including the users who have been granted access and the level of access they have.