Command · Knowledge & Docs
Microsoft OneDrive
Import files from a user's OneDrive via the Microsoft Graph API.
How it works
OneDrive connects with Microsoft OAuth. You sign in as the account that owns the files, and Command reads them through the Microsoft Graph API.
Before you start
- A Microsoft 365 or personal Microsoft account with OneDrive
- Tenant admin consent if your organization restricts third-party apps
What you need to make the connection
| Field | Where to get it |
|---|---|
| Microsoft sign-in | Interactive OAuth — no keys to copy. Command requests Files.Read and offline_access. |
| Folder selection | Chosen from a folder browser in Command after sign-in. |
Recommended practice: keep credentials private. If one is exposed, revoke or rotate it with the provider before reconnecting.
Setup steps
- 01
In raia Command, click Connectors in the left sidebar, open the connector, and click its connect button (Add connection on most connectors).
The Microsoft OneDrive connector page in raia Command (Connectors → Microsoft OneDrive) — review Setup instructions before connecting. - Highlight 1: Setup instructions — the provider runbook. Open it for what to configure in the third-party service first.
- Highlight 2: Add connection starts a new connection.
- 02
Sign in with the Microsoft account that owns the files and accept the consent screen.
The connection form after clicking Add connection. Enter the approved connection details, then check the account status after saving. - Highlight 1: The blank connection form. Enter the values from the table above in these fields.
- Highlight 2: Cancel closes the form without saving.
- 03
Browse to the OneDrive folder you want and map it to a project folder.
- 04
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.
Good to know
- The connection is tied to the signing-in user. If that account is disabled, syncs stop — use a service account for shared content.