Select Page

Set Default Calendar Permissions for All Mailboxes

I was recently asked by a customer to set the default calendar permissions for All Mailboxes to LimitedDetails (View availability data with subject and location). I could not find a command to do this for All Mailboxes at once. I found the below command which I could edit to apply for one mailbox.

Set-MailboxFolderPermission -Identity [email protected]:\Marketing -User [email protected] -AccessRights Owner

I confirmed this command worked correctly but I wanted to find a command that would complete this for All Mailboxes in the organisation. I come across the below command while searching –

foreach($user in Get-Mailbox -RecipientTypeDetails UserMailbox) {

$cal = $user.alias+”:\Calendar”

Set-MailboxFolderPermission -Identity $cal -User Default -AccessRights LimitedDetails

}

This command will effectively run a Get-Mailbox to retrieve all of the User Mailboxes and it will then set the permissions to LimitedDetails which was my requirement. You can also use the below commands for the different levels of access rights required.

  • -None   FolderVisible
  • -Owner   CreateItems, ReadItems, CreateSubfolders, FolderOwner, FolderContact, FolderVisible, EditOwnedItems, EditAllItems, DeleteOwnedItems, DeleteAllItems
  • -PublishingEditor   CreateItems, ReadItems, CreateSubfolders, FolderVisible, EditOwnedItems, EditAllItems, DeleteOwnedItems, DeleteAllItems
  • -Editor   CreateItems, ReadItems, FolderVisible, EditOwnedItems, EditAllItems, DeleteOwnedItems, DeleteAllItems
  • -PublishingAuthor   CreateItems, ReadItems, CreateSubfolders, FolderVisible, EditOwnedItems, DeleteOwnedItems
  • -Author   CreateItems, ReadItems, FolderVisible, EditOwnedItems, DeleteOwnedItems
  • -NonEditingAuthor   CreateItems, ReadItems, FolderVisible
  • -Reviewer   ReadItems, FolderVisible
  • -Contributor   CreateItems, FolderVisible
  • -AvailabilityOnly   View only availability data
  • -LimitedDetails   View availability data with subject and location

Pin It on Pinterest

Share This