SharePoint & OneDrive

Module Cloudlink - SharePoint & OneDrive
Technical Name cloud_link_sharepoint

With the extension Cloudlink - SharePoint & OneDrive you can integrate the following resources into Odoo:

  • A user’s OneDrive
  • A SharePoint site
  • A Drive by the drive’s ID

SharePoint Hero

Setup

Make sure you have a Microsoft 365 subscription for Business if you plan to do any of the following:

  • Access a OneDrive for Business
  • Access a SharePoint Site
  • Use the client credentials flow

It is possible to access a Personal OneDrive without a Microsoft 365 subscription.

OAuth 2.0 authorization code flow

  1. Register an application with the Microsoft identity platform
    • Supported account types: Accounts in any organizational directory and personal Microsoft accounts
  2. Add a client secret to your application
  3. Add a Web Redirect URI to your application.
    The redirect URI should be https://<your_odoo_domain>/cl_link_sharepoint/token

Web Redirect URI

  1. Create a new Cloudlink Drive

client credentials

OAuth 2.0 client credentials flow

  1. Register an application with the Microsoft identity platform
    • Supported account types: Accounts in any organizational directory and personal Microsoft accounts
  2. Add a client secret to your application
  3. Add the following permissions to access Microsoft Graph (Admin consent is required)
    • Files.ReadWrite.All
    • Sites.ReadWrite.All

API permissions

  1. Create a new Cloudlink Drive

client credentials

OneDrive/SharePoint Drive Settings

Resource

The type of resource you would like to access.

Authentication flow

An OAuth 2.0 token grant flow

Available options:

  • Authorization code flow
  • Client credentials flow

Client ID

Entra Application ID

Client Secret

Client credentials

Tenant

Directory (tenant) ID

Use “consumers” to access the OneDrive of a personal Microsoft account

Redirect URI

Destination when returning tokens after successfully authenticating

User ID

The user’s ID

Site ID

The ID of a SharePoint site

You can use Microsoft Graph Explorer to find the ID of your SharePoint site.

Drive ID

The id of a drive.