Skip to main content

Configure Microsoft OneDrive

At a glance

Microsoft OneDrive is a cloud file storage service integrated with Microsoft 365. With Ontologie, you can sync your files, folders, shared items, and recent activity into your workspace.

Before you start

  • A Microsoft account (personal or Microsoft 365) with access to the OneDrive you want to sync
  • An app registration in Azure Active Directory with the Microsoft Graph API permissions

Get credentials

  1. Go to the Azure Portal and navigate to Azure Active Directory > App registrations.
  2. Click New registration, give it a name, and set the redirect URI to the Ontologie callback URL.
  3. Under API permissions, add Microsoft Graph > Files.Read (or Files.Read.All for shared drives).
  4. Go to Certificates & secrets, create a new client secret, and copy the value.

Screenshots of the Azure Portal will be added in a future update.

Configure in Ontologie

  1. Open Live Data > Connectors.
  2. Search for Microsoft OneDrive in the catalogue.
  3. Click the Microsoft OneDrive card.
  4. Follow the configuration wizard:

Available streams

StreamDescription
FilesAll files stored in OneDrive, including metadata and content type
FoldersFolder hierarchy and structure
Shared ItemsFiles and folders shared with the authenticated user
RecentRecently accessed or modified items

Limits

LimitValue
API throttlingVaries by tenant; typically 10,000 requests per 10 minutes
File size for metadata syncNo limit (metadata only)
SharePoint sitesSupported with additional Graph API permissions

Troubleshooting

ErrorSolution
401 UnauthorizedRe-authenticate the connector or verify the client secret has not expired.
Insufficient privilegesEnsure the app registration has the required Microsoft Graph permissions and admin consent has been granted.
Missing shared filesCheck that the Files.Read.All permission is granted for access to shared items.

Expected result

Your data appears in Live Data > Streams with the Synced status. Synchronization runs at the configured frequency.

Need help?

See the Troubleshooting page for connection errors or write to us: Support and contact.