Skip to main content

🚀 Quickstart

Connect to SharePoint Online (v2) with Nango and see data flow in 2 minutes.
1

Create an integration

In Nango (free signup), go to Integrations -> Configure New Integration -> SharePoint Online (v2).
2

Authorize SharePoint Online (v2)

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

Call the SharePoint Online (v2) API

Let’s make your first request to the SharePoint Online (Microsoft Graph) API (fetch a list of all available sites in an organization). Replace the placeholders below with your secret key, integration ID, and connection ID:
curl "https://api.nango.dev/proxy/v1.0/sites" \
  -H "Authorization: Bearer <NANGO-SECRET-KEY>" \
  -H "Provider-Config-Key: <INTEGRATION-ID>" \
  -H "Connection-Id: <CONNECTION-ID>"
Or fetch credentials dynamically via 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.

📚 SharePoint Online (v2) Integration Guides

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

🧩 Pre-built syncs & actions for SharePoint Online (v2)

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

Others

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
list-shared-sitesThis action will be used to display a list of sites to the end-user, who will pick the ones he wants to sync. The connection metadata should be set based on the file selection.Action🔗 Github
shared-sites-selectionThis sync will be used to sync file metadata from SharePoint site based on the ones the user has picked.Sync🔗 Github
user-filesFetch all files from the user’s drive and sync the metadata for each file.Sync🔗 Github
user-files-selectionFetch all selected files from a user’s driveSync🔗 Github
Questions? Join us in the Slack community.