Usage
m365 outlook calendar list [options]
Description
Retrieves a list of all calendars of 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. |
--calendarGroupId [calendarGroupId] |
ID of the calendar group. Specify either calendarGroupId or calendarGroupName, but not both. |
--calendarGroupName [calendarGroupName] |
Name of the calendar group. Specify either calendarGroupId or calendarGroupName, but not both. |
Examples
List all calendars for the current signed-in user.
m365 outlook calendar list --userId "@meId"
List all calendars in a specific calendar group for the current signed-in user.
m365 outlook calendar list --userId "@meId" --calendarGroupName "Colleague calendars"
List all calendars for a specific user.
m365 outlook calendar list --userName "john.doe@contoso.com"
List all calendars from a specific calendar group for a specific user.
m365 outlook calendar list --userId b743445a-112c-4fda-9afd-05943f9c7b36 --calendarGroupId "AAMkADIxYjJiYmIzLTFmNjYtNGNhMy0YOkcEEh3vhfAAAGgdFjAAA="
Default properties
Additional Info
- Is it possible to list calendar groups of someone else while using delegated permissions? If not, we should make sure the user cannot pass any user-related options.
API: https://learn.microsoft.com/en-us/graph/api/user-list-calendars?view=graph-rest-1.0&tabs=http
Make sure to take this comment into account: #7075 (comment)
Usage
m365 outlook calendar list [options]
Description
Retrieves a list of all calendars of a user.
Options
--userId [userId]userIdoruserName, but not both.--userName [userName]userIdoruserName, but not both.--calendarGroupId [calendarGroupId]calendarGroupIdorcalendarGroupName, but not both.--calendarGroupName [calendarGroupName]calendarGroupIdorcalendarGroupName, but not both.Examples
List all calendars for the current signed-in user.
m365 outlook calendar list --userId "@meId"List all calendars in a specific calendar group for the current signed-in user.
List all calendars for a specific user.
m365 outlook calendar list --userName "john.doe@contoso.com"List all calendars from a specific calendar group for a specific user.
m365 outlook calendar list --userId b743445a-112c-4fda-9afd-05943f9c7b36 --calendarGroupId "AAMkADIxYjJiYmIzLTFmNjYtNGNhMy0YOkcEEh3vhfAAAGgdFjAAA="Default properties
Additional Info
API: https://learn.microsoft.com/en-us/graph/api/user-list-calendars?view=graph-rest-1.0&tabs=http
Make sure to take this comment into account: #7075 (comment)