Usage
m365 outlook event list [options]
Description
Retrieves a list of events from a specific calendar 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. |
--calendarId [calendarId] |
ID of the calendar. Specify either calendarId or calendarName, but not both. |
--calendarName [calendarName] |
Name of the calendar. Specify either calendarId or calendarName, but not both. |
--startDateTime [startDateTime] |
Time indicating the inclusive start of a time range when the event starts. |
--endDateTime [endDateTime] |
Time indicating the exclusive end of a time range when the event starts. |
--timeZone [timeZone] |
The time zone for the event start and end times. |
--properties [properties] |
Comma-separated list of properties to retrieve. |
--filter [filter] |
OData filter to apply when retrieving the events. |
Examples
List all events for the current signed-in user from a calendar specified by id.
m365 outlook event list --userId "@meId" --calendarId "AAMkAGRkZ"
List all events for the current signed-in user from a calendar specified by id and return event times in Pacific Standard Time time zone.
m365 outlook event list --userId "@meId" --calendarId "AAMkAGRkZ" --timeZone 'Pacific Standard Time'
List only id, subject, start time and end time of all events for a specific user and specific calendar
m365 outlook event list --userName "[email protected]" --calendarName "Calendar" --properties "id,subject,start,end"
Filter events for the current signed-in user
m365 outlook event list --userId "@meId" --calendarId "AAMkAGRkZ" --filter "contains(subject, 'contoso')"
List all events from specific date range
m365 outlook event list --userId "@meId" --calendarId "AAMkAGRkZ" --startDateTime '2026-01-01' --endDateTime '2026-01-31'
Default properties
Additional Info
API: https://learn.microsoft.com/en-us/graph/api/user-list-events?view=graph-rest-1.0&tabs=http
Remarks
When you specify a value for timeZone, consider the options of the time zone list, or additional time zone list
Usage
m365 outlook event list [options]
Description
Retrieves a list of events from a specific calendar of a user
Options
--userId [userId]userIdoruserName, but not both.--userName [userName]userIdoruserName, but not both.--calendarId [calendarId]calendarIdorcalendarName, but not both.--calendarName [calendarName]calendarIdorcalendarName, but not both.--startDateTime [startDateTime]--endDateTime [endDateTime]--timeZone [timeZone]--properties [properties]--filter [filter]Examples
List all events for the current signed-in user from a calendar specified by id.
List all events for the current signed-in user from a calendar specified by id and return event times in Pacific Standard Time time zone.
List only id, subject, start time and end time of all events for a specific user and specific calendar
Filter events for the current signed-in user
List all events from specific date range
Default properties
Additional Info
API: https://learn.microsoft.com/en-us/graph/api/user-list-events?view=graph-rest-1.0&tabs=http
Remarks
When you specify a value for
timeZone, consider the options of the time zone list, or additional time zone list