---
title: SharePoint API Integration on Truto
slug: sharepoint
category: Cloud Storage
canonical: "https://truto.one/integrations/detail/sharepoint/"
---

# SharePoint API Integration on Truto



**Category:** Cloud Storage  
**Status:** Generally available

## Unified APIs

### Unified Knowledge Base API

- **Page-Content** — Represents the content of a page
- **Pages** — Represents the pages, posts, articles in a knowledge base
- **Spaces** — Represents the high level grouping of pages in a knowledge base

### Unified User Directory API

- **Me** — 
- **Users** — The User object represents a User.
- **Workspaces** — Workspaces represent concepts like teams, workspaces, projects in apps that support them

### Unified File Storage API

- **Drive-Items** — Drive Items are the files and folders present in a file storage system. These items are usually part of a Drive. You can differentiate between files and folders using the type attribute.
- **Drives** — Drives is a collection of files and folders. They could have multiple Drive Items within them. Users could have multiple Drives accessible to them in a file storage system.
- **Permissions** — Permissions can answer your questions around which User has access to do what on a Drive Item or a Drive.
- **Workspaces** — Workspaces represent the top-level subdivision in a file storage system. They usually have their own set of drives, groups and users. Some of the usual terminologies used by the products for the top-level subdivision are projects, bases, spaces, workspace, etc.

### Unified Search API

- **Search** — Search endpoint for all the apps.

## MCP-ready AI tools

Truto exposes 2 tools for SharePoint that AI agents can call directly.

- **list_all_sharepoint_sites** — Lists all the sites on Sharepoint.
- **list_all_sharepoint_drives** — Lists all the drives for a Sharepoint site. Requires site_id.

## How it works

1. **Link your customer's SharePoint account.** Use Truto's frontend SDK; we handle every OAuth and API key flow so you don't need to create the OAuth app.
2. **Authentication is automatic.** Truto refreshes tokens, stores credentials securely, and injects them into every API request.
3. **Call Truto's API to reach SharePoint.** The Proxy API is a 1-to-1 mapping of the SharePoint API.
4. **Get a unified response format.** Every response uses a single shape, with cursor-based pagination and data in the `result` field.

## Use cases

- **Power AI search and retrieval across customer SharePoint environments** — SaaS companies building AI copilots or enterprise search products can ingest SharePoint pages, wiki content, and documents to build knowledge graphs. Truto's Unified Knowledge Base and Search APIs handle the complexity of traversing sites, drives, and page content while respecting permission boundaries.
- **Offer 'Bring Your Own Storage' with SharePoint as the destination** — CLM platforms, HR tools, and project management apps can push generated files — contracts, invoices, onboarding packets — directly into a customer's SharePoint drives. This lets enterprise customers maintain data sovereignty without leaving the SaaS product.
- **Sync workspace structures between your app and SharePoint** — When a SaaS app creates a new project, deal, or client record, it can automatically provision matching folders and directory structures in SharePoint. This keeps the SaaS app and the customer's file organization in lockstep without manual effort.
- **Build a native SharePoint file picker into your product** — SaaS apps can let end users browse their SharePoint sites, drives, and folders directly within the product UI to attach, link, or import files. Truto's tools for listing sites and drives plus the Unified File Storage API make this straightforward to implement.
- **Enforce permission-aware document access in third-party apps** — When surfacing SharePoint content inside a SaaS product, companies need to ensure users only see what they're authorized to see in SharePoint. The Unified File Storage API exposes permission data so apps can replicate access controls faithfully.

## What you can build

- **Embedded SharePoint file picker** — Let users browse SharePoint sites and drives using list_all_sharepoint_sites and list_all_sharepoint_drives, then select specific files or folders to link into your app.
- **Automated deal room provisioning** — When a deal closes or a project kicks off, automatically create a structured folder hierarchy in the customer's SharePoint drive with template documents pre-loaded.
- **Permission-aware document search** — Index SharePoint pages and drive items via the Unified Search API and Unified Knowledge Base API, then filter results at query time using SharePoint permission data from the Unified File Storage API.
- **Bi-directional document sync engine** — Continuously watch SharePoint drives for updated files and sync the latest versions into your platform, or push app-generated documents back into the correct SharePoint drive.
- **SharePoint wiki and intranet ingestion pipeline** — Crawl SharePoint Spaces and Pages via the Unified Knowledge Base API to extract page content for feeding RAG pipelines, internal search indexes, or knowledge management features.
- **User directory sync from SharePoint workspaces** — Pull user identities and workspace membership via the Unified User Directory API to auto-map permissions, pre-populate user profiles, or trigger onboarding workflows in your product.

## FAQs

### How does authentication work for SharePoint integrations through Truto?

SharePoint uses OAuth 2.0 via Microsoft Entra ID (Azure AD). Truto manages the full OAuth flow — token acquisition, refresh, and storage — so your end users simply authorize access through a consent screen and you never handle credentials directly.

### How does Truto handle SharePoint's hierarchical structure of sites and drives?

Truto provides dedicated tools — list_all_sharepoint_sites and list_all_sharepoint_drives — that let you enumerate all sites a connected user has access to, then drill into the document libraries (drives) within each site. From there, the Unified File Storage API gives you access to drive items, folders, and permissions.

### Can I access SharePoint page and wiki content, not just files?

Yes. The Unified Knowledge Base API exposes Spaces, Pages, and Page-Content resources, allowing you to read structured intranet and wiki content from SharePoint sites — not just documents stored in drives.

### How are file permissions handled when reading SharePoint data?

The Unified File Storage API includes a Permissions resource that exposes the access control lists (ACLs) on drive items. You can read these permissions to enforce the same access boundaries in your app that exist in the customer's SharePoint environment.

### Does Truto handle pagination and rate limits for the SharePoint / Microsoft Graph API?

Yes. Truto abstracts away Microsoft Graph API pagination and manages rate limit retries automatically. You interact with a consistent Unified API interface regardless of the underlying API's quirks.

### What operations are supported — read-only or read-write?

The Unified File Storage API supports both reading and writing drive items, so you can list, download, upload, and organize files. The Unified Knowledge Base, User Directory, and Search APIs provide read access to pages, users, and search results respectively.

## Related reading

- [How to Integrate with the SharePoint API: 2026 Architecture Guide](https://truto.one/blog/how-to-integrate-with-the-sharepoint-api-2026-architecture-guide/) — A technical guide to integrating with the SharePoint API in 2026 — covering Microsoft Graph hierarchies, OAuth with Entra ID, File Picker v8 pitfalls, rate limits, and pagination.
- [How to Integrate Google Drive, SharePoint, and Box: What It Really Takes](https://truto.one/blog/how-to-integrate-google-drive-sharepoint-and-box/) — Explore the engineering trade-offs of building Google Drive, SharePoint, and Box integrations versus using a Unified File Storage API.
