Office 365 - Powershell to get user calendar default permissions

Posted on 2013-10-08
Medium Priority
Last Modified: 2013-10-15
I got this much so far. This will fetch all user mailboxes. I also need it to only report user calendars that have default accessrights set to none. I can't seem to find the syntax to filter the results.

Get-Mailbox -ResultSize Unlimited | Where-Object {$_.ResourceType -eq 'User'}
Question by:bgcpc
1 Comment

Accepted Solution

bgcpc earned 0 total points
ID: 39573600
For anyone intereseted, I got an answer from the Office 365 community forums.

$mailboxes = Get-Mailbox -ResultSize Unlimited | Where-Object {$_.RecipientTypeDetails -eq 'UserMailbox'}

Foreach ($mailbox in $mailboxes)


$MailboxPerm = Get-MailboxFolderPermission -Identity ($mailbox.Alias+":\Calendar") -User Default

write-host ($mailbox.Alias + " is set to " + $MailboxPerm.AccessRights)

if ($MailboxPerm.AccessRights -eq "FolderVisible")


write-host ("`tChanging " + $mailbox.Alias)

Set-MailboxFolderPermission –Identity ($mailbox.Alias+":\Calendar") -User Default -Accessrights AvailabilityOnly



Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Upgrading from older Exchange server to the latest Exchange server can be tiresome, error-prone and risky, without being a seasoned exchange server administrators. It can become even problematic if you're an organization that runs on tight timeline…
Let us take a look at the scenario, you have a database that is corrupt and you run the ESEUTIL command only to find you are unable to repair it. How do you now get the data back?
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
In this video I will demonstrate how to set up Nine, which I now consider the best alternative email app to Touchdown.

619 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question