I have Shared Mailbox on Exchange online “Office 365” and Need to access Read Permission to Specific User and This Shared Mailbox has Sub-folders and need to inherit Read Permission from Root folder. How to do that?
To Add Permission to Sub-folders of Shared Mailbox on Exchange Online, you need to follow below steps:
- Open PowerShell Run as Administrator and Connect to Exchange Online “Office 365” using below Commands and prompt Windows PowerShell credentials enter “email@example.com” and its password.
$s=New-PsSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell -Credential $cred -AllowRedirection -Authentication Basic
$importresults = Import-PSSession $s
- Then Add Read permission to shared mailbox using below command:
Add-MailboxPermission -Identity TestShare –User Test3 -AccessRights ReadPermission -InheritanceType All
- We will initially give permission at the Top Information Store (Root) folder, and then execute the permission on rest of the folders inside the mailbox. When prompt Windows PowerShell credentials enter “firstname.lastname@example.org” and its password
Add-MailboxFolderPermission -Identity TestShare -User Test3 -AccessRights Reviewer
- Now you will not receive the warning alert when try to expand the mailbox, but still will have no access to any folder. Execute the below command with AddPermissiontoSubFolders.ps1 Script to assign the read permission to rest of folders under the mailbox. When prompt Windows PowerShell credentials enter “email@example.com” and its password
.\AddPermissiontoSubFolders.ps1 -Mailbox TestShare -User Test3 -Access reviewer
- Now, you can add shared Mailbox and it will show all Sub-folders.