Usage
m365 outlook calendar get [options]
Description
Retrieves the calendar of a user or a group.
Options
| Option |
Description |
-i, --id [id] |
ID of the calendar. Specify either id or name, but not both. |
-n, --name [name] |
Name of the calendar. Specify either id or name, but not both. |
--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
Get the calendar for the current signed-in user by id.
m365 outlook calendar get --userId "@meId" --id "AAMkAGI2TGuLAAA="
Get the calendar from a specific calendar group for the current signed-in user by name.
m365 outlook calendar get --userId "@meId" --calendarGroupName "Colleague calendars" --name "Calendar"
Get the calendar from a specific calendar group for a specific user by name.
m365 outlook calendar get --userId b743445a-112c-4fda-9afd-05943f9c7b36 --calendarGroupId "AAMkADIxYjJiYmIzLTFmNjYtNGNhMy0YOkcEEh3vhfAAAGgdFjAAA=" --name "Calendar"
Additional Info
- Is it possible to get the 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/calendar-get?view=graph-rest-1.0&tabs=http
Usage
m365 outlook calendar get [options]
Description
Retrieves the calendar of a user or a group.
Options
-i, --id [id]idorname, but not both.-n, --name [name]idorname, but not both.--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
Get the calendar for the current signed-in user by id.
Get the calendar from a specific calendar group for the current signed-in user by name.
Get the calendar from a specific calendar group for a specific user by name.
Additional Info
API: https://learn.microsoft.com/en-us/graph/api/calendar-get?view=graph-rest-1.0&tabs=http