-
Notifications
You must be signed in to change notification settings - Fork 375
Open
Labels
Description
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 "john.doe@contoso.com" --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
- id
- subject
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
Reactions are currently unavailable