Exchange 2010 Adding Mailbox Calendar permissions using PowerShell
Consider the following scenario
We have Students and Teachers located on the same Exchange 2010 server.
Default calendar permissions is set to Free / Busy time
A request has come from the teachers department,
All teachers would like to have Reviewer permissions to each others calendar folders.
Now
What is already prepared in this Exchange environment is that all Teachers have their CustomAttribute1 set to Teacher
And a Mail Universal Security Group already exists with the primary SMTP address Teachers@repro.com
To achieve the teachers request. All we need to do is to run the following powershell command.
Get-mailbox -Filter {(CustomAttribute1 -eq "Teacher")} | ForEach-Object {Add-MailboxFolderPermission $_":\Calendar" -User Teachers@repro.com -AccessRights Reviewer}
Permissions needed.
Mailbox folder permissions |
We are done !!!
To remove the permissions we just added.
Get-mailbox -Filter {(CustomAttribute1 -eq "Teacher")} | ForEach-Object {Remove-MailboxFolderPermission $_":\Calendar" -User Teachers@repro.com}
Add-MailboxFolderPermission
https://technet.microsoft.com/en-us/library/dd298062.aspx