-
Notifications
You must be signed in to change notification settings - Fork 370
Open
Labels
needs peer reviewNeeds second pair of eyes to review the spec or PRNeeds second pair of eyes to review the spec or PRnew feature
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] |
Start date of the events. |
--endDateTime [endDateTime] |
End date of the events. |
--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 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')' `start/dateTime ge '2026-01-01' and end/dateTime le '2026-01-31'`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
Metadata
Metadata
Assignees
Labels
needs peer reviewNeeds second pair of eyes to review the spec or PRNeeds second pair of eyes to review the spec or PRnew feature