outlook calendar set
Updates a calendar for a user.
Usage
m365 outlook calendar set [options]
Options
-i, --id <id>ID of the calendar.
-n, --name [name]New name of the calendar.
--userId [userId]ID of the user. Specify either
userIdoruserName, but not both.--userName [userName]UPN of the user. Specify either
userIdoruserName, but not both.--calendarGroupId [calendarGroupId]ID of the calendar group where the calendar belongs. Specify either
calendarGroupIdorcalendarGroupName, but not both.--calendarGroupName [calendarGroupName]Name of the calendar group where the calendar belongs. Specify either
calendarGroupIdorcalendarGroupName, but not both.--color [color]The color of the calendar in the UI. Allowed values:
auto,lightBlue,lightGreen,lightOrange,lightGray,lightYellow,lightTeal,lightPink,lightBrown,lightRed,maxColor.--isDefault [isDefault]Mark whether the calendar is the user's default calendar. Allowed values:
true,false.
-h, --help [help]Output usage information. Optionally, specify which section of command's help you want to see. Allowed values are
options,examples,remarks,permissions,response,full. Default isoptions.--query [query]JMESPath query string. See http://jmespath.org/ for more information and examples.
-o, --output [output]Output type.
json,text,csv,md,none. Defaultjson.--verboseRuns command with verbose logging.
--debugRuns command with debug logging.
Permissions
- Delegated
- Application
| Resource | Permissions |
|---|---|
| Microsoft Graph | Calendars.ReadWrite, Calendars.ReadWrite.Shared |
| Resource | Permissions |
|---|---|
| Microsoft Graph | Calendars.ReadWrite |
When using delegated permissions, specifying userId or userName for a different user requires the Calendars.ReadWrite.Shared scope. When the specified user matches the signed-in user, no shared scope is needed.
Examples
Update the name of a calendar for the signed-in user.
m365 outlook calendar set --id 'AAMkAGI2TQpZAAA=' --name 'Team planning'
Change the color of a specific calendar for a user by UPN.
m365 outlook calendar set --id 'AAMkAGI2TQpZAAA=' --userName 'john.doe@contoso.com' --color 'lightGreen'
Mark a calendar as the default calendar for a user.
m365 outlook calendar set --id 'AAMkAGI2TQpZAAA=' --userId 'b743445a-112c-4fda-9afd-05943f9c7b36' --isDefault true
Update a calendar within a specific calendar group by name.
m365 outlook calendar set --id 'AAMkAGI2TQpZAAA=' --name 'Team planning' --calendarGroupName 'My Calendars'
Response
- JSON
- Text
- CSV
- Markdown
{
"id": "AAMkAGI2TQpZAAA=",
"name": "Team planning",
"color": "auto",
"hexColor": "",
"isDefaultCalendar": false,
"changeKey": "DxYSthXJXEWwAQSYQnXvIgAAIxGttg==",
"canShare": true,
"canViewPrivateItems": true,
"canEdit": true,
"allowedOnlineMeetingProviders": [
"teamsForBusiness"
],
"defaultOnlineMeetingProvider": "teamsForBusiness",
"isTallyingResponses": true,
"isRemovable": false,
"owner": {
"name": "John Doe",
"address": "john.doe@contoso.com"
}
}
allowedOnlineMeetingProviders: ["teamsForBusiness"]
canEdit : true
canShare : true
canViewPrivateItems : true
changeKey : DxYSthXJXEWwAQSYQnXvIgAAIxGttg==
color : auto
defaultOnlineMeetingProvider : teamsForBusiness
hexColor :
id : AAMkAGI2TQpZAAA=
isDefaultCalendar : false
isRemovable : false
isTallyingResponses : true
name : Team planning
owner : {"name":"John Doe","address":"john.doe@contoso.com"}
id,name,color,hexColor,isDefaultCalendar,changeKey,canShare,canViewPrivateItems,canEdit,defaultOnlineMeetingProvider,isTallyingResponses,isRemovable
AAMkAGI2TQpZAAA=,Team planning,auto,,false,DxYSthXJXEWwAQSYQnXvIgAAIxGttg==,true,true,true,teamsForBusiness,true,false
# outlook calendar set
Date: 4/2/2026
Property | Value
---------|-------
id | AAMkAGI2TQpZAAA=
name | Team planning
color | auto
hexColor |
isDefaultCalendar | false
changeKey | DxYSthXJXEWwAQSYQnXvIgAAIxGttg==
canShare | true
canViewPrivateItems | true
canEdit | true
defaultOnlineMeetingProvider | teamsForBusiness
isTallyingResponses | true
isRemovable | false