Skip to content

New command: outlook event list #7083

@MartinM85

Description

@MartinM85

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

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions