---
title: "Set-MailboxFolderPermission: Change Calendar Access"
meta_title: "Set-MailboxFolderPermission: Change Calendar and Folder Access"
slug: set-mailboxfolderpermission-powershell
published: 2026-11-26T00:00:00.000Z
updated: 2026-11-26T00:00:00.000Z
feature_image: /blog/images/set-mailboxfolderpermission-powershell/set-mailboxfolderpermission-syntax-microsoft-learn.1600.webp
feature_image_alt: Microsoft Learn documentation for the Set-MailboxFolderPermission cmdlet showing its PowerShell syntax
author: James Futhey
author_slug: james
meta_description: "Set-MailboxFolderPermission changes a user's existing access to a calendar or folder. Examples, the Default entry, delegates, and the no existing entry error."
status: published
---

**Quick answer:** connect to Exchange Online PowerShell, then run:

```powershell
Set-MailboxFolderPermission -Identity ayla@contoso.com:\Calendar -User ed@contoso.com -AccessRights Reviewer
```

The rights you give replace Ed's current rights on Ayla's calendar. Set only changes an entry that already exists. If Ed has no entry on that folder yet, use [Add-MailboxFolderPermission](/blog/add-mailboxfolderpermission-powershell/) instead.

## What does Set-MailboxFolderPermission do?

It changes the permissions a user or group already has on one folder inside a mailbox, such as the Calendar, the Inbox or a custom folder. It works in Exchange Online and in on-premises Exchange Server 2010 through Exchange Server SE.

| Cmdlet | What it does |
|---|---|
| Add-MailboxFolderPermission | Creates a new entry for a user on the folder |
| Set-MailboxFolderPermission | Replaces the rights on an entry that already exists |
| [Remove-MailboxFolderPermission](/blog/remove-mailboxfolderpermission-powershell/) | Removes the user's whole entry |
| [Get-MailboxFolderPermission](/blog/get-mailboxfolderpermission-powershell/) | Lists the entries on the folder |

To publish a calendar to people outside your organization, use [Set-MailboxCalendarFolder](/blog/set-mailboxcalendarfolder-powershell/) instead.

## How do I connect first?

```powershell
Connect-ExchangeOnline -UserPrincipalName admin@contoso.com
```

If the module isn't installed, see [how to install the Exchange Online PowerShell module](/blog/install-exchange-online-powershell-module/). On-premises, open the Exchange Management Shell. Your account needs permission to manage mailbox folders.

## Examples

| Task | Command |
|---|---|
| Change a user to read-only | `Set-MailboxFolderPermission -Identity ayla@contoso.com:\Calendar -User ed@contoso.com -AccessRights Reviewer` |
| Change a user to edit access | `Set-MailboxFolderPermission -Identity ayla@contoso.com:\Calendar -User ed@contoso.com -AccessRights Editor` |
| Show subject and location to everyone | `Set-MailboxFolderPermission -Identity ayla@contoso.com:\Calendar -User Default -AccessRights LimitedDetails` |
| Block unauthenticated access | `Set-MailboxFolderPermission -Identity ayla@contoso.com:\Calendar -User Anonymous -AccessRights None` |
| Make someone Owner of a custom folder | `Set-MailboxFolderPermission -Identity ayla@contoso.com:\Marketing -User ed@contoso.com -AccessRights Owner` |
| Preview a change | Add `-WhatIf` to any of the above |

The Identity format is `Mailbox:\Folder\Subfolder`, for example `john@contoso.com:\Calendar` or `John:\Inbox\Reports`. For `-User`, Microsoft recommends a UPN such as `ed@contoso.com` or `contoso\ed`. It also accepts mail users and mail-enabled security groups.

## What AccessRights can I set?

| Role | What the user can do |
|---|---|
| Owner | Everything, including creating subfolders and managing the folder |
| PublishingEditor | Create, read, edit and delete all items, and create subfolders |
| Editor | Create, read, edit and delete all items |
| PublishingAuthor | Create and read items, edit and delete their own, create subfolders |
| Author | Create and read items, edit and delete their own |
| NonEditingAuthor | Create and read items, delete their own |
| Reviewer | Read items |
| Contributor | Create items |
| LimitedDetails | Calendars only: free/busy with subject and location |
| AvailabilityOnly | Calendars only: free/busy |
| None | No access |

The new value replaces the old one. It isn't added to it. You can also pass individual permissions such as ReadItems or CreateItems, separated by commas.

## How do I change the Default permission on a calendar?

Every calendar has a **Default** entry. It applies to signed-in users in your organization who don't have an entry of their own. On a calendar it is AvailabilityOnly by default, so people see when the calendar is busy but not the meeting subject.

To show subject and location to everyone in the organization:

```powershell
Set-MailboxFolderPermission -Identity boardroom@contoso.com:\Calendar -User Default -AccessRights LimitedDetails
```

This is a common change on room mailboxes, so people can see what a room is booked for. To do it for every room at once:

```powershell
Get-Mailbox -RecipientTypeDetails RoomMailbox -ResultSize Unlimited | ForEach-Object {
    Set-MailboxFolderPermission -Identity "$($_.PrimarySmtpAddress):\Calendar" -User Default -AccessRights LimitedDetails
}
```

Microsoft warns that lowering Default below AvailabilityOnly can stop free/busy lookups for that calendar. The **Anonymous** entry covers people who aren't signed in. Leave it at None unless you have a reviewed reason to change it.

On rooms that auto-accept bookings, Exchange also replaces the subject with the organizer's name by default. To keep the real subject, see [Set-CalendarProcessing](/blog/set-calendarprocessing-powershell/).

## How does Set-MailboxFolderPermission affect calendar delegates?

In Exchange Online, two parameters control delegates on a calendar:

- `-SharingPermissionFlags` makes a user a delegate. It only works with `-AccessRights Editor`. The values are Delegate, CanViewPrivateItems (only together with Delegate) and None.
- `-SendNotificationToUser $true` sends a sharing invitation. It works with AvailabilityOnly, LimitedDetails, Reviewer and Editor.

If you leave out both parameters, the user's delegate status stays as it was. If you use `-SendNotificationToUser` without `-SharingPermissionFlags`, the flags reset to None and the user stops being a delegate.

| Goal | Command |
|---|---|
| Change rights, keep delegate status | `Set-MailboxFolderPermission -Identity ayla@contoso.com:\Calendar -User ed@contoso.com -AccessRights Editor` |
| Turn a delegate into a plain Editor | `Set-MailboxFolderPermission -Identity ayla@contoso.com:\Calendar -User ed@contoso.com -AccessRights Editor -SharingPermissionFlags None` |
| Stop a delegate seeing private items | `Set-MailboxFolderPermission -Identity ayla@contoso.com:\Calendar -User ed@contoso.com -AccessRights Editor -SharingPermissionFlags Delegate` |
| Resend the invitation to a delegate | `Set-MailboxFolderPermission -Identity ayla@contoso.com:\Calendar -User ed@contoso.com -AccessRights Editor -SharingPermissionFlags Delegate -SendNotificationToUser $true` |

Microsoft recommends setting up full delegate relationships in Outlook while the calendar owner is signed in. An Editor entry without the Delegate flag is edit access, not a complete delegate. For room and equipment mailboxes, see [adding delegates to resource mailboxes](/blog/how-to-add-account-delegates-to-office-365-resource-mailboxes/).

## Why does Set-MailboxFolderPermission fail?

| Error or symptom | Fix |
|---|---|
| "There is no existing permission entry found for user" | The user has no entry on that folder. Run Add-MailboxFolderPermission instead. |
| The term Set-MailboxFolderPermission is not recognized | Connect first with `Connect-ExchangeOnline`, or open the Exchange Management Shell. |
| The folder can't be found | Check the `Mailbox:\Folder` format and the folder's name in that mailbox. |
| `-SharingPermissionFlags` is rejected | It needs Exchange Online, a calendar folder and `-AccessRights Editor`. |
| A delegate stopped getting meeting requests | `-SendNotificationToUser` reset the flags. Run Set again with `-SharingPermissionFlags Delegate`. |

The fix for the "no existing permission entry" error, from a [Microsoft Q&A answer](https://learn.microsoft.com/en-us/answers/questions/640068/grant-editor-permissions-to-external-user-on-share), is to check the folder with Get-MailboxFolderPermission, and if the user isn't listed, use Add.

## How do I check the result?

```powershell
Get-MailboxFolderPermission -Identity ayla@contoso.com:\Calendar -User ed@contoso.com
```

Confirm that AccessRights shows the role you set. Leave out `-User` to list every entry on the folder, including Default and Anonymous.

Sources: [Set-MailboxFolderPermission](https://learn.microsoft.com/en-us/powershell/module/exchangepowershell/set-mailboxfolderpermission) and [Manage calendar permissions in Exchange Online](https://learn.microsoft.com/en-us/exchange/collaboration-exo/shared-calendars/manage-calendar-permissions) on Microsoft Learn.

Meeting Room 365 turns any iPad or Android tablet into a room display for Exchange and Microsoft 365 calendars. See the [features](/features/) or [pricing](/pricing/): $9 a display a month.
