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 filesFiles.Read.All- Read file contentGroupMember.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.
- Usage as App
- Usage as MCP
Installation
- Go to Apps in your workspace
- Search for Sharepoint and install it
- 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 ishostname,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