2 minutes reading time
(310 words)
Office 365 - Allow delegates to view private items in a shared mailbox using PowerShell
Office 365 - How to use Exchange Online PowerShell to grant delegates permissions to view private items in a shared mailbox using Outlook
Grant delegates permissions to view private items using PowerShell
Messages with the sensitivity tag set to private can't be viewed in shared mailboxes unless you grant delegates permissions to ViewPrivateItems
Connect to Exchange Online
Connect-ExchangeOnline -UserPrincipalName adminuser@yourdomain.com
Grant mailbox Full Access permissions
You have to give Full Access to the shared mailbox so it appears in Outlook
Add-MailboxPermission -Identity sharedmailbox@yourdomain.com -User user@yourdomain.com -AccessRights FullAccess
PowerShell Add-MailboxFolderPermission and Set-MailboxFolderPermission
Use Add-MailboxFolderPermission to add a new delegate to the shared mailbox and Set-MailboxFolderPermission to change permissions for an existing delegate
Add new user to mailbox with Add-MailboxFolderPermission ViewPrivateItems
The PowerShell command specifies Calendar, but it also grants permissions to view private items in the inbox
Add-MailboxFolderPermission -Identity sharedmailbox@yourdomain.com:\Calendar -User user@yourdomain.com -AccessRights Editor -SharingPermissionFlags Delegate,CanViewPrivateItems
Change existing users mailbox permissions with Set-MailboxFolderPermission ViewPrivateItems
Set-MailboxFolderPermission -Identity sharedmailbox@yourdomain.com:\Calendar -User user@yourdomain.com -AccessRights Editor -SharingPermissionFlags Delegate,CanViewPrivateItems
List mailbox folder permissions for a user
Get-MailboxFolderPermission -Identity sharedmailbox@yourdomain.com:\Calendar -User user@yourdomain.com
Remove mailbox folder permissions for a user
Remove-MailboxFolderPermission -Identity sharedmailbox@yourdomain.com:\Calendar -User user@yourdomain.com
Viewing delegate permissions in Outlook
To see shared mailbox delegate permissions in Outlook, you will need to add the mailbox as a new email account in Outlook
File - Account Settings - Delegate Access
You can now see private messages in the shared mailbox
Reference:
by Author
Private items aren't displayed in a shared mailbox in Outlook
https://learn.microsoft.com/en-us/exchange/troubleshoot/user-and-shared-mailboxes/private-items-not-display
Comments