Required Scopes

To configure a Sync for SharePoint, you need to request the following scopes from your Microsoft OAuth application:
  • Sites.Read.All
  • Files.Read.All
  • User.Read.All
  • Group.Read.All
Learn more about configuring scopes for your app in Adding Integrations.

Synced Objects

SharePoint supports the following Synced Objects:

Files

Sync Configuration Options

Example
{
    "integration": "sharepoint",
    "pipeline": "files",
    "configuration": {
        "siteId": "contoso.sharepoint.com,12345678-1234-1234-1234-123456789012,87654321-4321-4321-4321-210987654321"
    }
}
siteId
string
required
The SharePoint Site ID to sync files from. This is required and specifies which SharePoint site’s document libraries should be synced.

Choosing Files and Folders

You can allow your user to select files from their SharePoint account in your app with the SharePoint File Picker provided by the Paragon SDK. Showing the File Picker Use the Paragon SDK in your frontend application to show the File Picker in your app. The SDK provides an ExternalFilePicker class to load SharePoint’s JavaScript into your page and authenticate with your user’s connected SharePoint account.
let picker = new paragon.ExternalFilePicker("sharepoint", {
    onFileSelect: (files) => {
        // Handle file selection
    }
});

// Loads external dependencies and user's access token
await picker.init();

// Open the File Picker
picker.open();
You can configure the File Picker to listen for additional callbacks or to restrict allowed file types. Learn more about configuring File Picker options in the SDK Reference.