Checking calendar permissions

Hello Everyone,

I am trying to Import UPN address from CSV like to check calendar permissions but It’s not working for me. Please assist

Here is my code

$userlist = Import-Csv -path C:\CSV\calusers.csv
FOREACH ($user in $userlist)
$name = $

Get-MailboxFolderPermission -identity$name:\calendar


What does “not working” mean? An error? Nothing is returned? You should work on getting a single result before looping:

$user = ""

Get-MailboxFolderPermission -Identity "$user:\Calendar"


In the code you don’t have a space between -Identity and $Name. That would throw an error.

It could be that the calendar is named in another language. Here is a bit of code that will find the calendar folder no matter what name it has:

$Folder = Get-MailBoxFolderStatistics -Identity $Primarysmtpaddress | Where-Object {$_.foldertype -like "Calendar"}
$identity = $primarysmtpaddress + ":\" + $
Get-MailboxFolderPermission -identity $identity