SharePoint/OneDrive
Configure SharePoint and OneDrive integration
Configuration
data_pools:
  - id: onedrive
    type: onedrive
    client_id: "4306c62e-d96d-41a0-9f59-f577e3707aba"
    refresh_token: $ONEDRIVE_REFRESH_TOKEN
    drive_id: $ONEDRIVE_DRIVE_ID
    drive_type: "personal"Configuration Options
| Field | Type | Default | Required | Description | 
|---|---|---|---|---|
| id | string | - | ✅ | Unique identifier for the data pool | 
| type | string | - | ✅ | Must be "onedrive" | 
| client_id | string | "4306c62e-d96d-41a0-9f59-f577e3707aba" | ❌ | Application client ID | 
| client_secret | string | null | ❌ | Application client secret | 
| refresh_token | string | - | ✅ | OAuth refresh token | 
| drive_id | string | - | ✅ | OneDrive ID | 
| drive_type | string | - | ✅ | Drive type ("personal", "business", "documentLibrary") | 
| tenant_id | string | null | ❌ | Optional custom tenant | 
| base_path | string | "/" | ❌ | Optional folder path | 
Setup
- Register Azure app: Azure Portal → App registrations
- Configure permissions: Microsoft Graph API permissions
- Get refresh token: OAuth2 authorization flow
- Add to environment: ONEDRIVE_REFRESH_TOKENandONEDRIVE_DRIVE_ID