Set Calendar permissions in Exchange 2010 in bulk

Posted on 2013-09-19
Medium Priority
Last Modified: 2015-06-30

I need to set calendar permissions in bulk. It's a little more complex than granting free/bussy permissions for all the users

For example, I want user from one OU to have 'publishing editor' permissions on the calendars of the users in another OU.

I found a way to do this with ExFolders but this is fine for a couple of mailboxes.

Unfortunately I'm not that good in powershell, which I think will be my solution here.

If I can do it using security groups then it would be even better. Then I can take a copy of an existing user when a new users needs to be added. This user will then automatically have the correct calendar permissions.

Can somebody help me out?

Question by:FlipTrip
  • 2
  • 2
LVL 40

Expert Comment

ID: 39505703
I want user from one OU to have 'publishing editor' permissions on the calendars of the users in another OU.
Is it for single user? or does all users from one OU need to be granted 'publishing editor' permissions on the calendars of the users in another OU.

If permission need to be granted for all users in the OU then, You can create a mail enabled security group and assign permission for that group..

Author Comment

ID: 39505940
Yes it's for all users from on OU.

After googling for half a day, I came up with the following script:

$MailboxesGeneral = Get-mailbox -Filter {(CustomAttribute1 -eq "General")}
$MailboxesBoard | ForEach-Object {Add-MailboxFolderPermission $_":\Agenda" -User group@domain.local -AccessRights Author}

I have configured a CustomAttribute for all users in the same OU. Then I made a Security Group that is email enabled.

Will this work?

LVL 40

Accepted Solution

Subsun earned 2000 total points
ID: 39506049
CustomAttribute is not necessary. You can use  -OrganizationalUnit  parameter of get-mailbox to list all users from a particular OU. For example if you want to set permission on users from OU Test.com/HQ/Users. Then try..
Foreach ($MBX in Get-Mailbox -OrganizationalUnit Test.com/HQ/Users) {
Add-MailboxFolderPermission "$($MBX.Alias):\Agenda" -User group@domain.local -AccessRights Author

Open in new window


Author Closing Comment

ID: 39508316
Great! Thx.

Expert Comment

by:Brian Plunkett
ID: 40860607
This is what I use.  I know it was answered already but I am just shareing mine.  This will change all users to reviewer so their calendars can be seen but not edited by others.

$Result | foreach{ Set-MailboxFolderPermission $($_.UserPrincipalName+":\calendar") -User default -AccessRights  reviewer}

Featured Post

We Need Your Input!

WatchGuard is currently running a beta program for our new macOS Host Sensor for our Threat Detection and Response service. We're looking for more macOS users to help provide insight and feedback to help us make the product even better. Please sign up for our beta program today!

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

After a recent Outlook migration from a 2007 to 2010 environment, some issues with Distribution List owners were realized. In this article, I explain how that was rectified.
Organisation is organized in a pattern to flow the day to day business, every application and system is interdepended on each other and when very important “Exchange Server downtime” happened.
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Screencast - Getting to Know the Pipeline

627 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question