OneNote Connector
Use this page when you need the Microsoft-side setup details for the OneNote connector. For shared connector behavior, start with Connectors Overview and Provider Auth And Setup.
Runtime Shape
Section titled “Runtime Shape”- Runtime status: implemented, live-only, read-only
- Connector key:
onenote - Live domain and canonical tool:
knowledge-pagethroughknowledge-page-live-query - 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:
Notes.Read.All
- Required resource selection:
- Save selected OneNote
notebooksthrough the shared connectorresourceSelectionmodel. - Sections are optional refinements after notebooks are selected.
- Save selected OneNote
Provider-Specific Gotchas
Section titled “Provider-Specific Gotchas”- OneNote uses Microsoft Graph v1.0 delegated OneNote APIs. It reads
/me/onenote/notebooks, section groups, sections, pages, scoped page lists, page details, and bounded page HTML/text content. - OneNote app-only auth is not supported.
- Deprecated OneNote
get-pages?searchbehavior is not used. If a tenant has weak full-text page search, the live path performs bounded title/recent/page-content retrieval and discloses bounded coverage instead of claiming whole-notebook semantic recall. - Page HTML/text evidence is transient live grounding. Do not add indexed sync, Meltano taps, embeddings, create/update/write behavior, media extraction, or retained notebook/page content until a separate accepted design adds them.
- OneNote shares the
microsoftOAuth provider with OneDrive, Outlook, Microsoft Calendar, Microsoft Contacts, and SharePoint. Reauthorization should preserve active sibling scopes, but selected notebooks are connector-level scoped resources, not account-level Microsoft provider-family scopes.
Real-Provider Smoke
Section titled “Real-Provider Smoke”apps/api/.env.example documents the OneNote smoke fixture variables:
REAL_PROVIDER_E2E_ONENOTE_ACCOUNT_IDREAL_PROVIDER_E2E_ONENOTE_NOTEBOOK_ID- optional
REAL_PROVIDER_E2E_ONENOTE_NOTEBOOK_IDSfor extra selected notebooks - optional page/title/query pins for stronger assertions
Use the real-provider doctor/smoke lane without printing secrets or reading real .env files manually.
Canonical Sources
Section titled “Canonical Sources”packages/domain/src/connectors/connectorRegistry.tsapps/api/src/connectors/providerManifests.tsapps/api/src/connectors/oneNoteLiveAdapters.tsapps/api/src/connectors/providerOptions.tsdocs/features/connectors/spec.mddocs/features/live-query/spec.md