Mystery of Calendar Permission role - PowerShell - Reviewer
I'm struggeling to handle roles for calendar...
The purpose is to open calendar of people who leave the cy.
I'm using this :
Try{Add-MailboxFolderPermission -Identity ${$CalendarDestinationAlias}:\"Calendar" -User $UserToGiveAccessToAlias -AccessRights $Rights -erroraction SilentlyContinue}
Catch{$bOk = $False}
Try{Set-MailboxFolderPermission -Identity ${$CalendarDestinationAlias}:\"Calendar" -User $UserToGiveAccessToAlias -AccessRights $Rights -erroraction SilentlyContinue}
Catch{$bOk = $False}
where Rights is "Reviewer".
Unfortunately even with Reviewer, I only see free/busy information but not the full details of the agenda....
WHY????
Do I need first to be sure that user $UserToGiveAccessToAlias has NO Access at all ? (if yes then how?)
PowershellExchange
Last Comment
Fr. Vandecan
8/22/2022 - Mon
Sean
When you view what the user has for permissions what are they? It might be set that by default all users have access to view free/busy only. So when you add permissions the old permissions are still there. You may need to remove the default permissions before or after you add the reviewer permissions.
FOX
Let's view what is already set on the calendar:
Get-MailboxFolderPermission "emailaddressofthecalendar:\calendar | ft -auto
If any of the users you are trying to add reviewer rights already have rights on that calendar create a .csv file with their emailaddresses and above those email address put USERS. Name the file users.csv and save it to c:\temp(or a file location of your choosing)
run the below command against that list.
Import-CSV c:\temp\users.csv | %{Set-MailboxFolderPermission emailaddressofthecalendar:\calendar -User $_.Users -AccessRights Reviewer}
create another .csv file with any other users who never had rights to the calender and name it users2.csv and with a heading users2 and put it in c:\temp as well.
Tks Fox:
a latest question about Calendar : I'm working in Belgium. This is a small country. However, we have here 4 potentials different language and the users have therefore the possibility to have Calendar (EN), Kalendar(Dutch), Calendrier (French) and also the german version.I would like to avoid to try each time each language for every mailbox calendar...