Add Calendar Delegate Using PowerShell in Exchange 2010

Have you ever been asked to give someone permission to view someone else’s calendar? I generally have them speak directly with whomever’s calendar they wish to see, but in the rare occasion that they are using Outlook Web App only, they can’t actually give delegate permission (or at least, not with Exchange 2010). What they can do is share their calendar and change viewing permissions. While I would rather them add their account to Outlook and do it themselves (I don’t want to manage that stuff…), there is a quick and easy way to add a calendar delegate from the Exchange PowerShell.

Connect PowerShell to Exchange, or use the Exchange PowerShell on an Exchange Server. I used the server with the Mailbox role, but it should work from any non-edge servers. After opening an Exchange PowerShell, use the following command to set permissions as desired:

Add-MailboxFolderPermission -Identity %usertosharefrom%:\Marketing -User %usertosharewith% -AccessRights Owner

In the %usertosharefrom% and %usertosharewith% you can use email address or alias. For AccessRights, you have several choices:

The AccessRights parameter specifies the permissions for the user with the following access rights:

  • ReadItems   The user has the right to read items within the specified folder.
  • CreateItems   The user has the right to create items within the specified folder.
  • EditOwnedItems   The user has the right to edit the items that the user owns in the specified folder.
  • DeleteOwnedItems   The user has the right to delete items that the user owns in the specified folder.
  • EditAllItems   The user has the right to edit all items in the specified folder.
  • DeleteAllItems   The user has the right to delete all items in the specified folder.
  • CreateSubfolders   The user has the right to create subfolders in the specified folder.
  • FolderOwner   The user is the owner of the specified folder. The user has the right to view and move the folder and create subfolders. The user can’t read items, edit items, delete items, or create items.
  • FolderContact   The user is the contact for the specified public folder.
  • FolderVisible   The user can view the specified folder, but can’t read or edit items within the specified public folder.

The AccessRights parameter also specifies the permissions for the user with the following roles, which are a combination of the rights listed previously:

  • 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

The following roles apply specifically to calendar folders:

  • AvailabilityOnly   View only availability data
  • LimitedDetails   View availability data with subject and location

http://technet.microsoft.com/en-us/library/dd298062.aspx

 

Comments

comments

Leave a Reply