Skip to content
← Connectors Directory

Command · Knowledge & Docs

Microsoft SharePoint

Import documents from a SharePoint document library via the Microsoft Graph API.

ImportAuth: Entra ID app (Sites.Selected)

How it works

SharePoint uses an Entra ID (Azure AD) application with the Sites.Selected permission, so raia Command can reach only sites an administrator grants it, provided the app has no broader permissions. Review the app's full grant set.

01

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
02

What you need to make the connection

FieldWhere to get it
Tenant IDEntra ID → Overview → Tenant ID (a GUID).
Client IDEntra ID → App registrations → your app → Overview → Application (client) ID.
Client secretYour app → Certificates & secrets → New client secret. Copy the Value (not the Secret ID) immediately.
Site URLe.g. https://contoso.sharepoint.com/sites/Handbook.

Recommended practice: keep credentials private. If one is exposed, revoke or rotate it with the provider before reconnecting.

03

Setup steps

  1. 01

    Register an application in Entra ID.

  2. 02

    Add the Microsoft Graph application permission Sites.Selected and grant admin consent.

  3. 03

    Have an administrator grant the app read access to the specific site collection.

  4. 04

    Create a client secret and copy the value.

  5. 05

    In raia Command, click Connectors in the left sidebar, open the connector, and click its connect button (Add connection on most connectors).

    The Microsoft SharePoint connector page in raia Command (Connectors → Microsoft SharePoint) — review Setup instructions before connecting.
    1. Highlight 1: Setup instructions — the provider runbook. Open it for what to configure in the third-party service first.
    2. Highlight 2: Add connection starts a new connection.
  6. 06

    Enter the tenant ID, client ID, client secret, and site URL, then save.

  7. 07

    Choose the destination project folder, run the first import, then set a sync schedule. Review Sync History for recorded runs and errors; a saved connection does not prove an import succeeded.

04

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.
05

Next steps

Other Knowledge & Docs connectors