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
Synced Objects
SharePoint supports the following Synced Objects:Files
Send a request to Enable Sync to start a file sync. Syncs for SharePoint can be created with one of the following configurations:- Site Sync: All files in the specified SharePoint site will be synced.
- Folder Sync: Only files in the specified folder will be synced (recursively including all subfolders).
- Sync of specific files: Only a group of specific files will be synced.
- Site Sync
- Folder Sync
- Sync of specific files
Example
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 anExternalFilePicker
class to load SharePoint’s JavaScript into your page and authenticate with your user’s connected SharePoint account.