How it works...

In this example, we're giving the Default user the ability to read all items in the calendar of the specified mailbox by assigning the Reviewer access right. This would give every user in the organization the ability to view the calendar items for this mailbox. There are four cmdlets in total that can be used to manage the mailbox folder permissions:

  • Add-MailboxFolderPermission
  • Get-MailboxFolderPermission
  • RemovemailboxFolderPermission
  • Set-MailboxFolderPermission

The Add and Set-MailboxFolderPermission cmdlets both provide an -AccessRights parameter that is used to set the appropriate permissions on the folder specified in the command. In the previous example, instead of assigning the Reviewer role, we could have assigned ...

Get Microsoft Exchange Server 2016 PowerShell Cookbook - Fourth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.