Hey there!
The syntax for all four commands:
Get-MailboxFolderPermission -Identity [email protected]:\calendar Set-MailboxFolderPermission -Identity [email protected]:\calendar -user [email protected] -AccessRights Editor Add-MailboxFolderPermission -Identity [email protected]:\calendar -user [email protected] -AccessRights Editor Remove-MailboxFolderPermission -Identity [email protected]:\calendar -user [email protected]
Let’s take a quick look at the calendars permission available to use with the switch -AccessRights
o Owner: The Owner role gives full control of the folder. An Owner can create, modify, delete, and read folder items; create subfolders; and change permissions on the folder.
o PublishingEditor: The Publishing Editor role has all rights granted to an Owner, except the right to change permissions. A Publishing Editor can create, modify, delete, and read folder items and create subfolders
o Editor: The Editor role has all rights granted to a Publishing Editor, except the right to create subfolders. An Editor can create, modify, delete, and read folder items
o PublishingAuthor: A Publishing Author can create and read folder items and create subfolders but can modify and delete only folder items that he or she creates, not items created by other users
o Author: An Author has all rights granted to a Publishing Author but cannot create subfolders. An Author can create and read folder items and modify and delete items that he or she creates
o NonEditingAuthor: A Nonediting Author can create and read folder items but cannot modify or delete any items, including those that he or she creates
o Reviewer: A Reviewer can read folder items but nothing else.
o Contributor: A Contributor can create only folder items and cannot read items.
o AvailabilityOnly: (Outlook displays as Free/Busy time
o LimitedDetails: Outlook displays as View Free/Busy Time, Subject, location), display as Limited Details
Get calendar permission from all users
Get-Mailbox | ForEach-Object {Get-MailboxFolderPermission $_":\calendar"} | Select Identity, User, AccessRights
BYW, an important piece of advice is if your users have their home language from Microsoft 365 different from English you must change the word calendar to the appropriate translation. In my case, I have a lot of Brazilian users so, sometimes I should use calendário as the folder name.
Remove-MailboxFolderPermission -Identity [email protected]:\calendário -user [email protected]