-
Notifications
You must be signed in to change notification settings - Fork 372
Open
Description
Usage
m365 outlook calendar add [options]
Description
Creates a new calendar for a user
Options
| Option | Description |
|---|---|
--userId [userId] |
ID of the user. Specify either userId or userName, but not both. |
--userName [userName] |
UPN of the user. Specify either userId or userName, but not both. |
--name <name> |
Name of the calendar. |
--calendarGroupId [calendarGroupId] |
Id of the group where the calendar will belong. Specify either calendarGroupId or calendarGroupName, but not both. |
--calendarGroupName [calendarGroupName] |
Name of the group where the calendar will belong. Specify either calendarGroupId or calendarGroupName, but not both. |
--color [color] |
The color of the calendar in UI. Allowed values are auto, lightBlue, lightGreen, lightOrange, lightGray, lightYellow, lightTeal, lightPink, lightBrown, lightRed, maxColor. Defaults to auto. |
--defaultOnlineMeetingProvider [defaultOnlineMeetingProvider] |
The default online meeting provider for meetings sent from the calendar. Allowed values are none, teamsForBusiness. Defaults to teamsForBusiness |
--default |
Specify whether the calendar will be the default calendar for new events. |
Examples
Create a new calendar for a user in a default calendar's group
m365 outlook calendar add --userId '@meId' --name 'Holidays'Create a new calendar for a user specified by email in a specific calendar group and defined color
m365 outlook calendar add --userName 'john.doe@contoso.com' --name 'Interviews' --calendarGroupId 'AAMkADY1YmE3N2FhLWEwMz' --color 'lightBlue'Default properties
Additional Info
- API: https://learn.microsoft.com/en-us/graph/api/user-post-calendars?view=graph-rest-1.0&tabs=http
- Permissions: Microsoft Graph, delegated/application
Calendars.ReadWrite
Feel free to comment if you think it would be useful to specify any additional properties during creation: https://learn.microsoft.com/en-us/graph/api/resources/calendar?view=graph-rest-1.0#properties
Reactions are currently unavailable