Connecting to OneDrive

Prev Next

Syniti Knowledge Platform (SKP) allows you to connect to OneDrive for the following usage types:

  • File Storage

  • Replication

Configuration Summary

The following table provides a high-level summary of the configurations you need to perform in OneDrive if you want to maintain a separate site and drive to integrate with the SKP.

S.No

Configuration Steps

Reference Materials

1

Register a new Azure AD application

  • Name your application as Syniti Drive Integration and note the values for the following fields: Application (client) ID and Directory (tenant) ID

* Register an application in Microsoft Entra ID

* Create a new client secret

* Get a drive resource

* Get driveItem

* Microsoft Graph permissions reference

2

Create Client secret

  1. In the newly created app, access Certificates & secrets

  2. Add a new client secret and copy the secret value.

3

Configure API permissions

  • Sites.Read.All (or Sites.ReadWrite.All for write access)

  • Files.Read.All (or Files.ReadWrite.All)

4

Get OneDrive information

  1. Access your OneDrive and note the drive URL or drive ID

  2. Use Microsoft Graph API: GET /me/drive or GET /users/{user-id}/drive to retrieve your Drive ID

5

Create a system datastore connection in the SKP using the SharePoint Online connection properties listed below

* Datastores

* Create a Connection

Connection Properties

Field Name

Description

Tenant ID

required

Enter the Azure AD (Entra ID) Tenant ID that uniquely identifies your organization. This value is found at Entra ID > Overview or App registrations > Overview and is required to authenticate requests to your OneDrive tenant.

Client ID

required

Enter the Application (client) ID that uniquely identifies your registered application in Microsoft Entra ID. This ID is used during authentication and authorization. The app must have the Files.ReadWrite/All application permission granted with admin consent.

Client Secret

required

Enter the client secret generated for your application in Microsoft Entra ID. This secret is used to authenticate the application when accessing OneDrive resources securely.

User ID / UPN

required

Enter the UPN (email address) or Azure AD Object ID of the user whose OneDrive to access. For example, alice@contoso.com

Default Folder

The default folder path within the OneDrive. Use / for the root folder.

Extended Properties

Use the + Add Property button to add any additional connection properties.