Add Permission to Sub-folders of Shared Mailbox on Exchange Online.

Problem

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?

Solution
To Add Permission to Sub-folders of Shared Mailbox on Exchange Online, you need to follow below steps:

  1. Open PowerShell Run as Administrator and Connect to Exchange Online “Office 365” using below Commands and prompt Windows PowerShell credentials enter “admin@domain.onmicorosft.com” and its password.
    $cred=Get-Credential
    $s=New-PsSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell -Credential $cred -AllowRedirection -Authentication Basic
    $importresults = Import-PSSession $sCapture1 Capture3
  2. Then Add Read permission to shared mailbox using below command:
    Add-MailboxPermission -Identity TestShare –User Test3 -AccessRights ReadPermission -InheritanceType AllCapture6
  3. 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 “admin@domain.onmicorosft.com” and its password
    Add-MailboxFolderPermission -Identity TestShare -User Test3 -AccessRights ReviewerCapture7
  4. 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 “admin@domain.onmicorosft.com” and its password
    .\AddPermissiontoSubFolders.ps1 -Mailbox TestShare -User Test3 -Access reviewerCapture8
  5. Now, you can add shared Mailbox and it will show all Sub-folders.
Advertisements
This entry was posted in Office 365. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s