Required Scopes
To configure a Sync for OneDrive, you need to request the following scopes from your Microsoft OAuth application:Files.Read.AllSites.Read.AllUser.ReadBasic.All(optional - for including organization users in the Permissions Sync)GroupMember.Read.All(optional - for including group membership in the Permissions Sync)
File and folder ingestion does not require the optional user or group scopes. Request
User.ReadBasic.All and GroupMember.Read.All only when using Permissions API. The broader User.Read.All and Group.Read.All scopes also satisfy these requirements if they are already granted.Synced Objects
OneDrive supports the following Synced Objects:Files
Send a request to Enable Sync to start a file sync. Syncs for OneDrive can be created with one of the following configurations:- Drive Sync: All files in the specified drive (or the default drive) will be synced.
- Folder Sync: Only files in the specified folder will be synced (recursively including all subfolders by default).
- Drive Sync
- Folder Sync
Choosing Files and Folders
You can allow your user to select files from their OneDrive account in your app with the OneDrive 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 OneDrive’s JavaScript into your page and authenticate with your user’s connected OneDrive account.