Skip to main content

🚀 Quickstart

Connect to OneDrive for Business with Nango and see data flow in 2 minutes.
1

Create the integration

In Nango (free signup), go to Integrations -> Configure New Integration -> OneDrive for Business.
2

Authorize OneDrive for Business

Go to Connections -> Add Test Connection -> Authorize, then log in to OneDrive for Business. Later, you’ll let your users do the same directly from your app.
3

Call the OneDrive for Business API

Let’s make your first request to the OneDrive for Business API. Replace the placeholders below with your secret key, integration ID, and connection ID:
  • cURL
  • Node
curl "https://api.nango.dev/proxy/v1.0/me/drives" \
  -H "Authorization: Bearer <NANGO-SECRET-KEY>" \
  -H "Provider-Config-Key: <INTEGRATION-ID>" \
  -H "Connection-Id: <CONNECTION-ID>"
Or fetch credentials with the Node SDK or API.✅ You’re connected! Check the Logs tab in Nango to inspect requests.
4

Implement Nango in your app

Follow our quickstart to integrate Nango in your app.To obtain your own production credentials, follow the setup guide linked below.

📚 OneDrive for Business Integration Guides

Nango maintained guides for common use cases. Official docs: Microsoft Graph API documentation

🧩 Pre-built syncs & actions for OneDrive for Business

Enable them in your dashboard. Extend and customize to fit your needs.

Drives

Function nameDescriptionTypeSource code
list-drivesLists the available drives for the authenticated user.Action🔗 Github

Files

Function nameDescriptionTypeSource code
fetch-fileThis action will be used to fetch the latest file download_url which can be used to download the actual file.Action🔗 Github
user-filesFetch all files from the user’s OneDrive and sync the metadata for each file.Sync🔗 Github
user-files-selectionFetch selected files from a user’s OneDrive based on provided metadata.Sync🔗 Github