Share via


How to add multiple users permissions to a calendar using powershell?

Question

Wednesday, February 5, 2014 5:41 PM

I have an organization that was recently setup in Exchange Online and they have unique circumstances in that every user in the organization needs "reviewer" access to every other users calendars.  I cannot change the default permission since new users added after this should not be able to see these calendars details.  There are a few I will go back to run a Set command on to change an individual permission here and there for specific needs, but the main need is below.

I have basic experience with powershell commands and have found how to manually add a single users permissions to a calendar using the command below:

Add-MailboxFolderPermission -Identity alias:\calendar -user alias -AccessRights reviewer

Since it's not realistic to run this command thousands of times changing the user aliases each time, I was hoping someone could help me build a command to run on a single mailbox's calendar that would add every current user in the organization with certain permissions such as "reviewer" or "availabilityonly".

Thanks for the help!

All replies (1)

Friday, February 7, 2014 8:13 AM

Hi,

A possible solution is to do this via Security Groups.

Add-MailboxFolderPermission -Identity [email protected]:\Calendar -User [email protected] -AccessRights Owner

This way, you simply add users that require access to the CalendarOwnerAccessGroup

You still have to run this on every mailbox that should have this feature, but that could be solved using powershell piping. http://technet.microsoft.com/en-us/library/ee176927.aspx

/Anders Eide