Command · Knowledge & Docs
Microsoft SharePoint
Import documents from a SharePoint document library via the Microsoft Graph API.
How it works
SharePoint uses an Entra ID (Azure AD) application with the Sites.Selected permission, so raia Command can only read the specific site an administrator grants it — not your whole tenant.
Before you start
- A Microsoft 365 tenant with SharePoint Online
- An Entra ID administrator who can register an app and grant admin consent
- The URL of the SharePoint site to import from
What you need to make the connection
| Field | Where to get it |
|---|---|
| Tenant ID | Entra ID → Overview → Tenant ID (a GUID). |
| Client ID | Entra ID → App registrations → your app → Overview → Application (client) ID. |
| Client secret | Your app → Certificates & secrets → New client secret. Copy the Value (not the Secret ID) immediately. |
| Site URL | e.g. https://contoso.sharepoint.com/sites/Handbook. |
Credentials are stored encrypted in raia Command and are never shown again after saving. Rotate them at the provider if they are exposed.
Setup steps
- 01
Register an application in Entra ID.
- 02
Add the Microsoft Graph application permission Sites.Selected and grant admin consent.
- 03
Have an administrator grant the app read access to the specific site collection.
- 04
Create a client secret and copy the value.
- 05
In raia Command, open Settings → Connectors, find the connector, and click Connect.
- 06
Enter the tenant ID, client ID, client secret, and site URL, then save.
- 07
Choose the destination project folder, run the first import, then set a sync schedule. Every run is recorded in Sync History.
Good to know
- Sites.Selected grants nothing on its own — the per-site grant is a separate, required step.
- Client secrets expire. Note the expiry date and rotate before it lapses or syncs will start failing.