Microsoft Calendar Connector
Use this page when you need the Microsoft-side setup details for the Microsoft Calendar connector. For shared connector behavior, start with Connectors Overview and Provider Auth And Setup.
Runtime Shape
Section titled “Runtime Shape”- Implemented modes: fixed
live - Auth binding: Better Auth generic OAuth provider id
microsoft - Callback URI examples:
http://localhost:3001/api/auth/oauth2/callback/microsofthttps://auth.example.com/api/auth/oauth2/callback/microsoft
- Setup console URL:
- Required connector scopes:
Calendars.Read
Provider-Specific Gotchas
Section titled “Provider-Specific Gotchas”- Microsoft Calendar is a separate connector key:
microsoft-calendar. Do not reuse, rename, or broaden the existingoutlookmail connector. - The connector uses delegated
Calendars.Read. Do not addCalendars.Read.Sharedunless product explicitly accepts shared or delegated calendar coverage. - Calendar discovery uses Microsoft Graph
/me/calendars. - Date-window and upcoming event lookup uses
/me/calendar/calendarViewand/me/calendars/{id}/calendarView, which requirestartDateTimeandendDateTime. - Focused event search uses Microsoft Search API
POST /v1.0/search/querywithentityTypes: ["event"]where supported. - Microsoft Search event search is scoped to the signed-in user’s primary calendar, does not support delegated mailbox search, does not support event sorting, and has limited personal Microsoft account support.
- Recent changed-event lookup is not enabled unless a provider path with update-time filtering is accepted; do not simulate it with broad text search.
- Microsoft Calendar, Microsoft Contacts, Outlook, and OneDrive share the same connector auth binding. Reauthorization under an existing linked
microsoftaccount requests the full scope set needed by sibling Microsoft connectors under that account. - Calendar grounding must preserve private/limited-detail source kinds and must not expose opaque provider ids in user-facing answer text unless the user explicitly asks for identifiers.
Canonical Sources
Section titled “Canonical Sources”packages/domain/src/connectors/connectorRegistry.tsapps/auth/src/genericOAuthProviders.tsapps/api/src/mastra/tools/microsoftCalendarLiveQuery.tsapps/api/src/connectors/liveAccessCalendarContracts.tsdocs/features/connectors/spec.mddocs/features/live-query/spec.md