What you can do
- Sync specific files or folders: Use OneDrive’s native file picker to choose exactly what enters the index. Files outside the selection are not imported.
- Sync from shared content: Include files and folders shared with you across your organization, not only files you own.
- Stay in sync automatically: Circuit re-checks the source periodically. Updates and deletions are mirrored to the index.
Before you start
- A Microsoft work, school, or personal account with access to the files you want to sync.
- For organizations using Microsoft Entra ID (formerly Azure AD) with restrictions on third-party apps, your Entra administrator may need to approve Circuit in advance. See For IT and security teams below.
- An index in Circuit where the OneDrive files should live. See Indexes if you need to create one.
Connect OneDrive
Open the index's Integrations tab
In Circuit, open the index that should receive the OneDrive files, then choose Integrations > New integration.
Choose Import from OneDrive
Select Import from OneDrive. Circuit redirects you to Microsoft’s sign-in page.
Sign in to Microsoft
Sign in with the Microsoft account that owns or has access to the files you want to sync.
Review and consent to the requested permissions
Microsoft shows a consent screen listing the Graph permissions Circuit requests. Review them (see What Circuit accesses below) and click Accept.
Pick what to sync
After consent, Circuit opens the OneDrive picker. Select the files and folders that should be imported into the index. Files outside this selection are never accessed.
What Circuit accesses
Circuit requests four Microsoft Graph delegated permissions:| Permission | Why Circuit needs it |
|---|---|
Files.Read | Read the content and metadata of your files so Circuit can import them. |
Files.Read.All | Let you pick shared files and folders you have access to across your organization, not only ones you own. |
Files.ReadWrite | Required by the picker to surface the files Circuit needs to import. Circuit only reads OneDrive content. It does not create, modify, or delete files through this integration. |
offline_access | Issue a refresh token so Circuit can keep the feed in sync in the background without asking you to reauthenticate. Microsoft access tokens are short-lived (about an hour), so without this scope you would need to reconnect frequently. |
Circuit only reads from the files and folders you select in the picker. Files outside the selected scope are not imported, even though the granted permissions technically allow broader access.
For IT and security teams
The OneDrive feed authenticates through a single Circuit-published enterprise application in your Entra tenant. In tenants that require admin approval for third-party applications, users will be blocked at the consent screen until an administrator grants tenant-wide consent for Circuit. To grant consent:- Sign in to the Microsoft Entra admin center as a Cloud Application Administrator or higher.
- Go to Entra ID > Enterprise apps > All applications and search for Circuit.
- Open Permissions under Security and review the requested scopes.
- Click Grant admin consent for
your tenant.
Disconnect or rotate access
- From Circuit: open the index’s Integrations tab, select the OneDrive feed, and click Remove. Circuit deletes the stored refresh token and stops syncing. Already-imported documents stay in the index until you delete them.
- From Microsoft: at myapps.microsoft.com > Manage your applications, find Circuit and remove its permissions. Circuit will lose access on the next sync attempt.
Troubleshooting
"Need admin approval" or "this app needs permission to access resources in your organization"
"Need admin approval" or "this app needs permission to access resources in your organization"
Your Entra tenant requires admin consent for third-party apps. Ask your Entra administrator to grant tenant-wide consent (see For IT and security teams).
The picker shows fewer files than expected
The picker shows fewer files than expected
The picker only shows what your Microsoft account can access. Files in shared drives or other users’ OneDrives appear only if those users have shared them with you. Ask the file owner to share the folder, or include the file in a SharePoint site that Circuit can read (see SharePoint).
Sync stops working after a password change or MFA reset
Sync stops working after a password change or MFA reset
The refresh token is invalidated. Open the feed in Circuit and click Reconnect.
A file was updated in OneDrive but the index still shows the old content
A file was updated in OneDrive but the index still shows the old content
Updates are picked up on the next sync cycle, usually within a few hours. If a file remains out of date for longer, force a re-sync from the feed’s settings.
Reference
- OAuth flow: Microsoft identity platform, authorization code
- Scopes requested:
Files.Read,Files.Read.All,Files.ReadWrite,offline_access - Redirect URI:
https://app.circuit.ai/api/onedrive-oauth - Application name shown on consent screen: Circuit
- Microsoft’s own docs: Microsoft Graph file permissions, OneDrive picker overview