top of page

Managing Calendar Permissions in O365 with PowerShell

  • Writer: Jack Davies
    Jack Davies
  • Jan 11
  • 2 min read

Updated: Jun 29

ree

How to get a users calendar permissions:


You need to input the PowerShell script below while logged into the required O365 tenancy as a Global Administrator

Get-MailboxFolderPermission -Identity example@example.co.uk:\calendar

Example below:

ree

This will list every single person who has access to the inputted users calendar in O365.


How to add calendar permissions:


You need to input the PowerShell script below while logged into the required O365 tenancy as a Global Administrator

Add-MailboxFolderPermission -Identity example@example.co.uk:\calendar -User example@example.co.uk -AccessRights

Make sure you add the required 'Access Rights', these are listed below.

Example below:

ree

This will give the user 'user@jackdjd.co.uk' editor access rights to the user 'test@jackdjd.co.uk'


How to remove calendar permissions:


You need to input the PowerShell script below while logged into the required O365 tenancy as a Global Administrator

Remove-MailboxFolderPermission -Identity example@example.co.uk:\calendar -User example@example.co.uk

Example below:

ree

This will remove access rights from the user 'user@jackdjd.co.uk' to the user 'test@jackdjd.co.uk'


You can then check the permissions have been removed by using the following:

Get-MailboxFolderPermission -Identity example@example.co.uk:\calendar

How to change calendar permissions:


You need to input the PowerShell script below while logged into the required O365 tenancy as a Global Administrator

Set-MailboxFolderPermission -Identity example@example.co.uk:\calendar -user example@example.co.uk -AccessRights

Example below:

ree

This will change the access rights for the user 'test@jackdjd.co.uk' for 'user@jackdjd.co.uk' to Reviewer.

You can then check the permissions have been changed by using the following:

Get-MailboxFolderPermission -Identity example@example.co.uk:\calendar

All Calendar Access Rights and what they do:

  • Owner - Can read, create, modify and delete all items and folders. Can also manage item permissions.

  • PublishingEditor - Can read, create, modify and delete all items and subfolders.

  • Editor - Can read, create, modify and delete items.

  • PublishingAuthor - Can read and create all items and subfolders, but can only modify and delete all items they create.

  • Author - Can read and create items, and can edit their own items.

  • NonEditingAuthor - Can read all items and create items, but can only delete their own items.

  • Reviewer - Can only read items.

  • Contributor - Can create items and subfolders.

  • AvailabilityOnly - Can read free/busy information from the calendar.

  • LimitedDetails - Can view the subject and location.

  • None - No permissions to access.



How to see what calendars a user has access to:

You need to input the PowerShell script below while logged into the required O365 tenancy as a Global Administrator

Get-Mailbox | % { Get-MailboxFolderPermission (($_.PrimarySmtpAddress.ToString())+”:\Calendar”) -User example@example.co.uk -ErrorAction SilentlyContinue} | select Identity,User,AccessRights

Example below:

ree

This will list all of the calendars that the user 'test@jackdjd.co.uk' has access to.


Comments


bottom of page