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

FieldTypeDefaultRequiredDescription
idstring-Unique identifier for the data pool
typestring-Must be "onedrive"
client_idstring"4306c62e-d96d-41a0-9f59-f577e3707aba"Application client ID
client_secretstringnullApplication client secret
refresh_tokenstring-OAuth refresh token
drive_idstring-OneDrive ID
drive_typestring-Drive type ("personal", "business", "documentLibrary")
tenant_idstringnullOptional custom tenant
base_pathstring"/"Optional folder path

Setup

  1. Register Azure app: Azure Portal → App registrations
  2. Configure permissions: Microsoft Graph API permissions
  3. Get refresh token: OAuth2 authorization flow
  4. Add to environment: ONEDRIVE_REFRESH_TOKEN and ONEDRIVE_DRIVE_ID

Microsoft Graph Documentation