Add a SharePoint or OneDrive source to a knowledge base
- graal Agentic Platform
- Version 0.30 (actuelle)
- Open source · Apache 2.0
- Source : graalsystems/tranibor@v0.30.1
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.
Before you start
Section intitulée « Before you start »- 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.Selectedplus 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.
At Microsoft
Section intitulée « At Microsoft »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.
Permissions
Section intitulée « Permissions »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.
In Tranibor
Section intitulée « In Tranibor »- Knowledge, the base, Add source, kind SharePoint.
- Pick the connector. With none in the list, the form links to Administration, Connectors, to declare one.
site_id(ordrive_idfor a OneDrive), and optionally afolder. 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 everyArchivefolder 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.- 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.
When it fails
Section intitulée « When it fails »- “no
documentsconnector”: 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 |
Network egress
Section intitulée « Network egress »Hosts the platform must be allowed to reach:
graph.microsoft.comlogin.microsoftonline.com