← All integrations

Content & Documents · Integration

Embed a Microsoft OneDrive integration in your product

Add Microsoft OneDrive to your product for your customers, and give your AI agents governed access to it.

A OneDrive integration lets your product work with files where a customer already keeps them: drives, the drive items and folders inside them, sharing links, and the permissions that govern both. Addressing is the thing to get right, because an item can be reached by id or by path and the two behave differently. A path breaks the moment somebody renames a parent folder, while an id survives a move, so an id is what your product should store. Change tracking uses a delta token rather than a timestamp, large files need a resumable upload session instead of one request, and a business drive inherits its permissions from SharePoint. fastn holds each account's grant, refreshes it and monitors the connector, proposing a tested fix when Microsoft OneDrive changes its API.

In your product

Embedded for your customers. Per-tenant auth, customized per customer, monitored by fastn.

  • Let each customer connect their own drive so your product reads and files documents without asking them to upload copies.
  • Store item ids rather than paths, so a renamed folder does not break every reference your product kept.
  • Track changes with a delta token so your product notices new and edited files without walking the whole drive.
  • Create sharing links with the scope a customer expects, and read existing permissions before widening anything.

For your AI agents

Governed, audited access for the agents you build, through the MCP server.

  • An agent finds and reads a document in one customer's drive, within the permissions that grant allows.
  • An agent saves a generated report into the folder a customer nominated, and the item id is recorded.
  • An agent says who a file is currently shared with by reading its permissions rather than guessing.

Example prompt

Find the most recent version of this document in my OneDrive and tell me who it is shared with.

Set up Microsoft OneDrive in 4 steps

  1. 01Enable the Microsoft OneDrive connector from your fastn dashboard.
  2. 02Have each customer authorize their own Microsoft OneDrive account, so calls run under their credentials rather than a shared key.
  3. 03Decide which files, documents and versions your product needs, map those fields, then enable the actions and triggers you want.
  4. 04Call it from your product and expose it to your agents through the same governed integration.

Microsoft OneDrive connector reference: actions, triggers and auth

Why teams use the Microsoft OneDrive integration

  • Ship a Microsoft OneDrive integration without building it. Your customers connect their own Microsoft OneDrive account inside your product and work their files, documents and versions there, and nothing lands on your team.
  • Handle the part that actually costs time: permissions and versioning are easy to get subtly wrong, and mistakes expose content. fastn handles the auth, token refresh, rate limits and pagination, and when Microsoft OneDrive changes, its maintainer agent proposes a tested fix, so a Microsoft OneDrive update does not start in your backlog.

Microsoft OneDrive integration FAQ

Can AI agents use this Microsoft OneDrive integration?

Yes, through the fastn MCP gateway, scoped per customer and audited. An agent finds and reads a document in one customer's drive, within the permissions that grant allows. For example: "Find the most recent version of this document in my OneDrive and tell me who it is shared with."

Whose permissions does the Microsoft OneDrive integration run under?

Each customer's own Microsoft OneDrive grant. Where Microsoft OneDrive holds a library, their existing folder and item permissions apply and your product cannot reach content the connected account could not reach itself. Where it processes content you supply rather than storing it, the call runs under that customer's own credentials and is logged per tenant.

Can my product create or update content in Microsoft OneDrive automatically?

Where Microsoft OneDrive supports writes, documents, entries and assets can be created, updated and filed from your product or by an agent within scoped permissions, with each action logged. Where it is a read surface, the same connection serves reads only.

What can I build with the Microsoft OneDrive integration?

A common starting point: let each customer connect their own drive so your product reads and files documents without asking them to upload copies. The use cases above list the rest.

Add Microsoft OneDrive to your product

Start free with 3 customer connections. No sales call required, and no per-customer integration code.