Add Calendar Permissions in Office 365 via Powershell using Add-MailboxFolderPermission

Add Calendar Permissions in Office 365 via Powershell using Add-MailboxFolderPermission

Step by Step Guide for setting calendar permissions in Office 365:

First step would be launch Powershell as Administrator.

Second would be to open a new PS Session on powershell to Exchange Online/Office 365 using below commands.

$GetCred = Get-Credential


$PSSession = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $GetCred -Authentication Basic -AllowRedirection


Import-PSSession $PSSession

Now the last step is to configure the permissions for the user2 permissions on user1 calendar using below Powershell:

Add-MailboxFolderPermission -Identity user1@domain.com:\calendar -user user2@domain.com -AccessRights Editor

These are the available permissions levels for above -AccessRights are given below

  1. None: FolderVisible
  2. Owner: CreateItems, ReadItems, CreateSubfolders, FolderOwner, FolderContact, FolderVisible, EditOwnedItems, EditAllItems, DeleteOwnedItems, DeleteAllItems
  3. PublishingEditor: CreateItems, ReadItems, CreateSubfolders, FolderVisible, EditOwnedItems, EditAllItems, DeleteOwnedItems, DeleteAllItems
  4. Editor: CreateItems, ReadItems, FolderVisible, EditOwnedItems, EditAllItems, DeleteOwnedItems, DeleteAllItems
  5. PublishingAuthor: CreateItems, ReadItems, CreateSubfolders, FolderVisible, EditOwnedItems, DeleteOwnedItems
  6. Author: CreateItems, ReadItems, FolderVisible, EditOwnedItems, DeleteOwnedItems
  7. NonEditingAuthor: CreateItems, ReadItems, FolderVisible
  8. Reviewer: ReadItems, FolderVisible
  9. Contributor: CreateItems, FolderVisible

To check existing permissions, use below command

Get-MailboxFolderPermission -Identity user1@domain.com:\calendar

FolderName         User                   AccessRights
———-         —-          ————
Calendar             Default                {AvailabilityOnly}
Calendar             Anonymous         {None}
Calendar             user2                   {AvailabilityOnly}
Calendar             user4                   {LimitedDetails}

If Existing permission already exists then use below command to change the permissions as needed.

Set-MailboxFolderPermission -Identity user1@domain.com:\calendar -user user2@domain.com -AccessRights Editor

To Check permissions again:

Get-MailboxFolderPermission -Identity user1@domain.com:\calendar

FolderName         User                   AccessRights
———-                   —-          ————
Calendar             Default                {AvailabilityOnly}
Calendar             Anonymous         {None}
Calendar             user2                  {Reviewer}
Calendar             user4                  {LimitedDetails}

Vamshi B

Recent Posts

How to install Firefox browser using Powershell

How to install of FireFox browser using PowerShell Sometimes you would like to install Firefox…

2 years ago

How to install chrome with Powershell?

Quick way to install chrome on windows with Powershell? Launch the Powershell and run below…

2 years ago

How to Fix PowerShell Script Not Digitally Signed Error?

How to Fix PowerShell Script Not Digitally Signed Error? When a script with a .ps1…

2 years ago

Powershell Cheat Sheet for beginners

Powershell Cheat Sheet for beginners PowerShell has become something of an ace in the hole…

2 years ago

Can you use Linux commands in Powershell?

Today we discuss one of a few questions a lot of sysadmins and IT Admins…

2 years ago

Backing Up an SQL Database with PowerShell

Backing Up an SQL Database with PowerShell Before making any changes in the production environment,…

2 years ago

This website uses cookies.