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....
Do I need first to be sure that user $UserToGiveAccessToAlias has NO Access at all ? (if yes then how?)
François VDCIcT service DeskAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

SeanSystem EngineerCommented:
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.
FOXActive Directory/Exchange EngineerCommented:
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.

Import-CSV c:\temp\users2.csv | %{Set-MailboxFolderPermission emailaddressofthecalendar:\calendar -User $_.Users2 -AccessRights Reviewer}
François VDCIcT service DeskAuthor Commented:
That's correct. By default everybody has AvailabilityOnly
I'm lost.

how to achieve this change ? I have to remove first the AvailabiltyOnly to the users I want to give Reviewer Access?

@Fox : it seems that both commands are the same. so I do not follow your thinking....
FOXActive Directory/Exchange EngineerCommented:
Typo above
The first command is to see if any of your users already have calendar rights on the mailbox.  
Get-MailboxFolderPermission "emailaddressofthecalendar:\calendar | ft -auto

If you have users that do, create a .csv file with those users and run the set command
Import-CSV c:\temp\users.csv | %{Set-MailboxFolderPermission emailaddressofthecalendar:\calendar -User $_.Users -AccessRights Reviewer}

for all other users create another .csv and run the add command
Import-CSV c:\temp\users2.csv | %{Add-MailboxFolderPermission emailaddressofthecalendar:\calendar -User $_.Users2 -AccessRights Reviewer}

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
François VDCIcT service DeskAuthor Commented:
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...

any idea?
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.