Skip to main content
Connect OneDrive to automatically sync Word documents, Excel spreadsheets, and PowerPoint presentations into your Supermemory knowledge base. Supports both personal and business accounts with scheduled synchronization.

Quick setup

1. Create OneDrive Connector

2. Handle Microsoft OAuth

Send the user to authorization.url before authorization.expiresAt. After the user grants permissions, Microsoft redirects to your redirectUrl and the initial sync begins. A pending OAuth connector is not visible in list or get until the user finishes authorization.

3. Monitor sync status

There is no per-connector document list in v5. supermemory.list(namespace, "documents") returns every document in the namespace.

Supported document types

Microsoft Word documents

  • Rich text formatting converted to markdown
  • Headers and styles preserved as markdown hierarchy
  • Images and charts extracted and referenced
  • Tables converted to markdown tables

Excel spreadsheets

  • Worksheet data converted to structured markdown
  • Multiple sheets processed separately
  • Charts and graphs extracted as images
  • Formulas converted to calculated values
  • Cell formatting simplified in markdown

PowerPoint presentations

  • Slide content converted to structured markdown
  • Speaker notes included when present
  • Images and media extracted and referenced
  • Embedded objects processed when possible

Sync mechanism

Webhooks lead to real-time syncing of changes in documents. You may also manually trigger a sync.

Manual sync trigger

The call returns 409 while a sync for that connector is already running.

Delete Connector

Remove a OneDrive connector when no longer needed:
Deleting a connector will:
  • Stop all future syncs from OneDrive
  • Remove the OAuth authorization
  • Delete the synced documents unless you pass deleteDocuments: false

Advanced configuration

Custom Microsoft app

For production deployments you can connect with your own Microsoft application. Custom OAuth credentials are an organization setting and are not part of the v5 connector routes. See Custom OAuth Applications for the setup steps and callback URL.

Optimization tips

  1. Set realistic document limits based on storage and usage
  2. Monitor sync health regularly with latestRun and include: "syncs"
  3. Trigger manual syncs when immediate updates are needed
  4. Consider account type when setting expectations
OneDrive-Specific Benefits:
  • Supports both personal and business Microsoft accounts
  • Processes all major Office document formats
  • Preserves document structure and formatting
  • Handles large enterprise document collections
Important Limitations:
  • Large Office documents may take significant time to process
  • Complex Excel formulas may not convert perfectly to markdown
  • Microsoft API rate limits may slow sync for large accounts