> ## Documentation Index
> Fetch the complete documentation index at: https://ps365.clidsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Set-ExCalendarPermission

## SYNOPSIS

Sets calendar folder permissions for a mailbox in Exchange Online.

## SYNTAX

```powershell theme={null}
Set-ExCalendarPermission [-Identity] <String> -AccessRights <String> -DelegateUser <String>
 [-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm] [<CommonParameters>]
```

## DESCRIPTION

Grants or updates calendar permissions for a delegate user on a target mailbox.
The calendar folder is automatically resolved from the mailbox identity.

## EXAMPLES

### EXAMPLE 1

```powershell theme={null}
Set-ExCalendarPermission -Identity "john.doe@contoso.com" -AccessRights Reviewer -DelegateUser "jane.doe@contoso.com"
```

Grants read-only access to Jane on John's calendar.

### EXAMPLE 2

```powershell theme={null}
Set-ExCalendarPermission -Identity "john.doe@contoso.com" -AccessRights AvailabilityOnly -DelegateUser "jane.doe@contoso.com"
```

Grants free/busy visibility only to Jane on John's calendar.

## PARAMETERS

### -Identity

The identity of the mailbox whose calendar permissions will be modified (email address, username, or display name).

```yaml theme={null}
Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -AccessRights

The permission level to grant to the delegate user.
Accepted values:

* None                              - The user has no permissions on the folder.
* FreeBusyTimeOnly                  - The user can view only free/busy time within the calendar.
* FreeBusyTimeAndSubjectAndLocation - The user can view free/busy time within the calendar and the subject and location of appointments.
* Reviewer                          - The user can read all items in the folder.
* Contributor                       - The user can create items in the folder.
  The contents of the folder do not appear.
* NoneditingAuthor                  - The user can create and read all items in the folder, and delete only items that the user creates.
* Author                            - The user can create and read all items in the folder, and edit and delete only items that the user creates.
* PublishingAuthor                  - The user can create and read all items in the folder, edit and delete only items that the user creates, and create subfolders.
* Editor                            - The user can create, read, edit and delete all items in the folder.
* PublishingEditor                  - The user can create, read, edit, and delete all items in the folder, and create subfolders.
* Owner                             - The user can create, read, edit, and delete all items in the folder, and create subfolders.
  The user is both folder owner and folder contact.
* Custom                            - The user has custom access permissions on the folder.

```yaml theme={null}
Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -DelegateUser

The user to whom the calendar permissions will be granted.

```yaml theme={null}
Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -WhatIf

Shows what would happen if the cmdlet runs.
The cmdlet is not run.

```yaml theme={null}
Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -Confirm

Prompts you for confirmation before running the cmdlet.

```yaml theme={null}
Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about\_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).

## INPUTS

## OUTPUTS

## NOTES

Requires the ExchangeOnlineManagement module and an active connection to Exchange Online.

## RELATED LINKS
