Skip to main content
Use the SharePoint Connector to ingest files or site pages from SharePoint into the mAItion knowledge base.

What It Does

  • authenticates to Microsoft Entra ID using client credentials (app registration)
  • fetches files from a SharePoint drive/folder, or pages from a SharePoint site
  • converts content to Markdown for indexing
  • runs ingestion on configurable schedules

Modes

  • File mode (sharepoint_type: file, default): loads files from a drive/folder
  • Page mode (sharepoint_type: page): loads SharePoint site pages

Authentication

Authentication uses Microsoft Entra ID client credentials (an Azure app registration) — client_id, client_secret, and tenant_id.

Required Environment Variables

Set these in .env.rag:
  • SHAREPOINT1_CLIENT_ID: Azure app registration client ID
  • SHAREPOINT1_CLIENT_SECRET: Azure app registration client secret
  • SHAREPOINT1_TENANT_ID: Azure tenant ID
  • SHAREPOINT1_SCHEDULES: ingestion interval in seconds (default is 3600)

config.yaml Example

File mode

File mode — with folder path

File mode — with site ID

Page mode

.env.rag Example

Configuration Reference

Multiple SharePoint Sources

Add more sources entries (sharepoint2, sharepoint3, etc) with separate env vars per source.