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
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
- Register an application with the Microsoft identity platform
- Supported account types: Accounts in any organizational directory and personal Microsoft accounts
- Add a client secret to your application
- Add a Web Redirect URI to your application.
The redirect URI should behttps://<your_odoo_domain>/cl_link_sharepoint/token
- Create a new Cloudlink Drive
OAuth 2.0 client credentials flow
- Register an application with the Microsoft identity platform
- Supported account types: Accounts in any organizational directory and personal Microsoft accounts
- Add a client secret to your application
- Add the following permissions to access Microsoft Graph (Admin consent is required)
Files.ReadWrite.All
Sites.ReadWrite.All
- Create a new Cloudlink Drive
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.