Skip to main content
The SharePoint connector provides access to Microsoft SharePoint Online document libraries via the Microsoft Graph API, enabling AI agents and automations to browse folders, list files, and download content.

Browse Structure

List sites, drives, and folder hierarchies

File Access

Download files with metadata for change detection

Access Control

Per-user permission validation (PBAV) for secure access

Prerequisites

  • An Azure AD Application registered in your tenant
  • Application permissions granted:
    • Sites.Read.All - Read sites and files
    • Files.Read.All - Read file content
    • GroupMember.Read.All - For PBAV group membership checks (optional)
  • Admin consent granted for these permissions
For Knowledges document sync with per-user access control, see the dedicated SharePoint Connector for Knowledges documentation.

Installation

  1. Go to Apps in your workspace
  2. Search for Sharepoint and install it
  3. Configure the app instance with your Azure AD credentials

Configuration

Available Automations

Site Operations

Drive Operations

File & Folder Operations

Authentication

DSUL Examples

List Sites

List Document Libraries

List Files in a Folder

Download a File

Get Folder Tree


Error Handling

Common Issues

“Site not found” - The site ID format is hostname,siteCollectionId,siteId. Use Graph Explorer to find the correct format. “Access denied” - The Azure AD app needs Sites.Read.All permission with admin consent. “Token expired” - OAuth tokens expire after 1 hour. Use ensureAccessToken to refresh.

External Resources

Microsoft Graph Files API

Official API documentation

SharePoint Sites API

Site operations reference

Graph Explorer

Test API calls interactively

Knowledges SharePoint Connector

Document sync and PBAV for Knowledges