Forum Discussion
davidhedge
Jul 26, 2022Copper Contributor
Powershell Calendar Permissions
Hi! I am looking to make a powershell command that allows a handful of users to edit every users outlook calendar in the exchange. Currently it is set so that everyone can see each others calendars w...
VasilMichev
Jul 26, 2022MVP
You will have to grant them Editor (or the appropriate level) permissions, on each user's calendar. Here's a quick and dirty way to do this:
$calendars = Get-Mailbox -RecipientTypeDetails UserMailbox | Get-MailboxFolderStatistics | ? {$_.FolderType -eq "Calendar"} | select @{n="Identity"; e={$_.Identity.Replace("\",":\")}}
$calendars | % {Set-MailboxFolderPermission -Identity $_.Identity -User email address removed for privacy reasons -AccessRights Editor}
$calendars = Get-Mailbox -RecipientTypeDetails UserMailbox | Get-MailboxFolderStatistics | ? {$_.FolderType -eq "Calendar"} | select @{n="Identity"; e={$_.Identity.Replace("\",":\")}}
$calendars | % {Set-MailboxFolderPermission -Identity $_.Identity -User email address removed for privacy reasons -AccessRights Editor}
Zenulbashar
Jun 27, 2023Copper Contributor
Hi @VasilMichev I can see that this command gives permission to bunch of users. However, I am trying to give all employees to edit each other's calendar, so that everyone can see everyone's calendar and should edit each other calendar. Is this possible with a group policy or any other way that i am not aware of? Please Enlighten me as we are totally on Azure and using E3 licenses for all the users.