Aller au contenu
EN English versionDemander une démo

Add a SharePoint or OneDrive source to a knowledge base

For an organisation administrator. Procedure source.sharepoint, version 1, reviewed 2026-10-16 against the vendor’s own pages. It applies to the knowledge source kind sharepoint.

It ships with the platform. In the console it opens with How to set this up, beside the form that adds the connector and on the connector’s settings.

Addresses are written <api_url>, <public_url> and <org> here: the console shows the same text with your deployment’s own.

  • A SharePoint connector declared by an organisation administrator (see “Connect SharePoint and OneDrive”): it holds the Entra app and its secret. The source form picks it from a list and never asks for a secret.
  • The app must have been granted the site (Sites.Selected plus a per-site grant). Consent alone grants none, and every sync then fails with 403. A connector that signs in with a service account needs no grant: the account must be able to read the site.
  • The site’s Graph id, or the id of the drive.

Find the site’s id with GET https://graph.microsoft.com/v1.0/sites/<host>:/sites/<path> (the answer’s id), or a drive’s id with GET /v1.0/sites/{site-id}/drives. The connector’s procedure shows how to grant the app the site.

The source reads what the app was granted on that site, with delta sync. Everything it reads becomes readable by everyone the base is open to, whatever the document’s own permissions say.

  1. Knowledge, the base, Add source, kind SharePoint.
  2. Pick the connector. With none in the list, the form links to Administration, Connectors, to declare one.
  3. site_id (or drive_id for a OneDrive), and optionally a folder. Excluded paths leave out what the folder holds but should not be read, for example an archive: globs under the folder, each starting with /, case-insensitive, where * also crosses / (/*Archive*/* drops every Archive folder at any depth, /*DO NOT USE* every file or folder named so). Changing them starts the next sync from scratch: what they now exclude leaves the base.
  4. Choose the refresh: every N minutes (5 minutes to 7 days), a cron expression, or manual.

Press Sync now on the source: it shows added, updated, deleted and skipped documents, and the last error if there is one.

  • “no documents connector”: no administrator has declared a SharePoint connector yet.
  • 403 accessDenied: the app was not granted that site.
  • A wrong connector name: names are lowercase, and the connector must be of type SharePoint (the message suggests the right one).
  • Documents missing: the app was granted another site, or the folder does not exist.
Field What to put in it
connector the organisation’s documents/sharepoint connector, picked from a list
drive_id a OneDrive’s or a library’s drive id, instead of a site
folder a folder under the drive, to read only a branch
site_id the SharePoint site’s Graph id

Hosts the platform must be allowed to reach:

  • graph.microsoft.com
  • login.microsoftonline.com