Forum Discussion
Russ Mckee
Feb 12, 2018MCT
Report on Default Calendar Permissions if they are set to AvailabilityOnly
Hi All,
I have a daily script running against Office 365 to set the permissions of all mailbox calendars to be "Reviewer" for all (being the Default user). This script works well, however what ...
Russ Mckee
Feb 12, 2018MCT
I found the solution:
$users = Get-Mailbox -Resultsize Unlimited
foreach ($user in $users) {
Get-MailboxFolderPermission -Identity "$($user.alias):\calendar" | where {$_.User -like “Default” -and ($_.AccessRights -notlike “Reviewer”)} | FL Identity | Out-File -append "C:\Scripts\Logs\UsersWithoutDefaultReviewerInCalendar.txt"
}
VasilMichev
Feb 12, 2018MVP
You can do it even easier by using the -User parameter:
Get-MailboxFolderPermission huku:\Calendar -User Default