outlook calendargroup add
Creates a new calendar group for a user.
Usage
m365 outlook calendargroup add [options]
Options
--userId [userId]ID of the user. Specify either
userIdoruserName, but not both.--userName [userName]UPN of the user. Specify either
userIdoruserName, but not both.--name <name>Name of the calendar group.
-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
Create a new calendar group for the current user
m365 outlook calendargroup add --name "Personal Events" --userId "@meId"
Create a new calendar group for a user
m365 outlook calendargroup add --name "Personal Events" --userId "44288f7d-7710-4293-8c8e-36f310ed2e6a"
Create a new calendar group for a user specified by email
m365 outlook calendargroup add --name "Personal Events" --userName "john.doe@contoso.com"
Response
- JSON
- Text
- CSV
- Markdown
{
"id": "AQMkAGRlM2Y5YTkzLWI2NzAtNDczOS05YWMyLTJhZGY2MGExMGU0MgBGAAADSG3wPE27kUeySjmT5eRT8QcAfJKVL07sbkmIfHqjbDnRgQAAAgEGAAAAfJKVL07sbkmIfHqjbDnRgQADK5c4ngAAAA==",
"name": "My Work Calendars",
"classId": "c02d4ddf-4809-485f-9cd4-1ef0937e03be",
"changeKey": "fJKVL07sbkmIfHqjbDnRgQADKqwfAA=="
}
changeKey: fJKVL07sbkmIfHqjbDnRgQADKqwfAA==
classId : c02d4ddf-4809-485f-9cd4-1ef0937e03be
id : AQMkAGRlM2Y5YTkzLWI2NzAtNDczOS05YWMyLTJhZGY2MGExMGU0MgBGAAADSG3wPE27kUeySjmT5eRT8QcAfJKVL07sbkmIfHqjbDnRgQAAAgEGAAAAfJKVL07sbkmIfHqjbDnRgQADK5c4ngAAAA==
name : My Work Calendars
id,name,classId,changeKey
AQMkAGRlM2Y5YTkzLWI2NzAtNDczOS05YWMyLTJhZGY2MGExMGU0MgBGAAADSG3wPE27kUeySjmT5eRT8QcAfJKVL07sbkmIfHqjbDnRgQAAAgEGAAAAfJKVL07sbkmIfHqjbDnRgQADK5c4ngAAAA==,My Work Calendars,c02d4ddf-4809-485f-9cd4-1ef0937e03be,fJKVL07sbkmIfHqjbDnRgQADKqwfAA==
# outlook calendargroup add --debug "false" --verbose "false" --name "My Work Calendars"
Date: 7/9/2026
## My Work Calendars (AQMkAGRlM2Y5YTkzLWI2NzAtNDczOS05YWMyLTJhZGY2MGExMGU0MgBGAAADSG3wPE27kUeySjmT5eRT8QcAfJKVL07sbkmIfHqjbDnRgQAAAgEGAAAAfJKVL07sbkmIfHqjbDnRgQADK5c4ngAAAA==)
Property | Value
---------|-------
id | AQMkAGRlM2Y5YTkzLWI2NzAtNDczOS05YWMyLTJhZGY2MGExMGU0MgBGAAADSG3wPE27kUeySjmT5eRT8QcAfJKVL07sbkmIfHqjbDnRgQAAAgEGAAAAfJKVL07sbkmIfHqjbDnRgQADK5c4ngAAAA==
name | My Work Calendars
classId | c02d4ddf-4809-485f-9cd4-1ef0937e03be
changeKey | fJKVL07sbkmIfHqjbDnRgQADKqwfAA==