Microsoft SharePoint
Connect a SharePoint document library to Datasaur. Once connected, you can attach the library to a knowledge base, which keeps its documents in sync on a schedule you set.
Prerequisites
A Microsoft Entra ID (Azure AD) tenant containing the SharePoint site.
Permission to register an application in that tenant, or an admin who can do it for you.
Access to the site with the Microsoft account you will sign in with.
Setup
Step 1 — Register an Application

Open the Azure Portal and go to Microsoft Entra ID.
Select App registrations, then click New registration.
Enter a Name, for example
Datasaur SharePoint.Under Supported account types, keep the default single-tenant option unless users from other tenants need to connect.
Under Redirect URI, select Web and enter:
On Datasaur Cloud, use
https://llm.datasaur.ai/api/eos/authorization/sharepoint. Self-hosted deployments must be served over HTTPS.Click Register.
From the Overview blade, copy the Application (client) ID and the Directory (tenant) ID.
Step 2 — Add API Permissions

Go to API permissions and click Add a permission.
Select Microsoft Graph, then Delegated permissions.
Add
Files.Read.AllandSites.Read.All, then click Add permissions.If your tenant requires it, click Grant admin consent and confirm. After admin consent is granted, a white check mark with green background should appear in the status column.
Datasaur also requests openid, profile, and offline_access. You do not need to add these.
Step 3 — Create a Client Secret

Go to Certificates & secrets and click New client secret.
Enter a description, choose an expiry, and click Add.
Copy the secret's Value (not the Secret ID).
The Value is shown only once. Note the expiry date too: when the secret expires, the connection stops syncing.
Step 4 — Find Your Site Path and Library Name
Open the site in your browser and look at the URL:
Site path — The part identifying the site, here
/sites/marketing. Leave empty to use the root site.Document library name — The library's name in the left navigation, such as
Documents. Leave empty to use the default library. Matching ignores case.
Step 5 — Connect SharePoint in LLM Labs
Go to Settings > External object storage and click Add external object storage.
Select SharePoint.
Fill in the form:
FieldRequiredNotesAzure AD Application (client) ID
Yes
From Step 1.
Client secret
Yes, for a Web registration
From Step 3.
Tenant ID
Only for single-tenant apps
From Step 1.
Site path
No
Blank connects the root site.
Document library name
No
Blank connects the default library.
Click Authorize.
Sign in with an account that can access the site and click Accept on the consent screen.

You return to Datasaur. The connection appears in the list as
{Site} - {Library}, for exampleMarketing - Documents.
Using the Connection
Open a knowledge base, choose Connect object storage..., and pick your SharePoint connection.


Set the sync rules and schedule, then click Connect object storage.

The connection syncs the whole library by those rules. It is not a file-by-file picker. To change the rules later, use Edit rules or schedule... on the connected source, available once the knowledge base has been updated.

Datasaur only reads. It never writes to your SharePoint site.
Last updated