OneDrive / Sharepoint
This document describes the Dataworkz connector configuration required to access OneDrive/Sharepoint. It lists the steps needed to setup OneDrive/Sharepoint connected app and to configure a connector for the same in Dataworkz.
Connected App Setup
Following steps need to be followed to configure a connected app for OneDrive.
Register your OneDrive app on azure platform. Login to Microsoft Entra admin center for the purpose.
If you have access to multiple tenants, use the Settings icon in the top menu to switch to the tenant for which you want to register the application from the Directories + subscriptions menu.

Browse to Identity > Applications > App registrations and select New registration.

Enter a display Name for your application.

Enter the redirect URI. This URI can be obtained by following the instructions in Creating OneDrive Connector
Select Register to complete the initial app registration. For more details refer
Register an application with the Microsoft identity platform - Microsoft Graph to create new app.

Select “Add a certificate or secret“ to assign secret to the connected app that was configured above.

Click on “New Client Secret“ to create secret.

Click on “Add“ button to create secret. Once created copy secret value as this will not be accessible later.

Instead of secret, you can also upload public key of key-value pair certificate. In this case private key will be used while creating configuration through Dataworkz admin UI.

Click the "API Permissions" link to assign permissions. Click on Microsoft Graph and then select “Application Permissions” to assign resource permissions for the connected app.

Add “File.Read.All“ to read and download from OneDrive
Add “Sites.Read.All“ for sharepoint sites files retrieval.
Click on “Overview“ link to go back to the connected app. Copy client Id and tenant id required to connect to OneDrive from Dataworkz admin UI.

Creating OneDrive Connector in Dataworkz
Login to Dataworkz Application
Goto Configuration -> SaaS Applications -> OneDrive
Click the + icon to add a new configuration

Enter name for the connector (OneDrive Instance Name)
Select the OAuth option (currently Private Connected App is the only supported option)
Redirect URL
Connected App Exists
select "Yes"
Add Client ID/Secret & tenant ID that were copied during creation of the connected app.
Click "Save". This would created the OneDrive connector for the purpose of file selection during the creation of the AI applications
Connected App Doesn't Exist
select "No" and screen below would pop-up

copy the redirect URL and goto Connected App Setup. In connected app setup redirect URL should be pasted in step # 5.
Last updated

