Skip to main content
Odoo Community Association

Microsoft account for Drive

Beta License: LGPL-3 OCA/storage Translate me on Weblate Try me on Runboat

This addon allows the user to link their Microsoft Drive account to Odoo. The stored credentials are then used by other addons to perform actions on Drive as the logged-in user.

Table of contents

Configuration

In order to use the Microsoft Drive Account module, you need to follow this process for link Odoo and Microsoft:

PART 1 : Create an Azure Application

To allow Odoo to access Microsoft OneDrive or SharePoint through the Microsoft Graph API, you must create an application in Azure Active Directory.

Step 1 – Open the Azure portal and go to Azure Active Directory, then “App registrations”, and click “New registration”.

Step 2 – Register the application. Set a name “Odoo storage integration”. Select the third option “Accounts in any organizational directory (Any Microsoft Entra ID tenant - Multitenant) and personal Microsoft accounts (e.g. Skype, Xbox)” Add a Redirect URI of type “Web”. {URL of your Odoo instance}/microsoft_account/authentication. Once the application is created, note the Application (client) ID and the Directory (tenant) ID.

Azure App dashboard

Step 3 – Generate a client secret. Go to Certificates & secrets, create a new client secret (Description : Odoo storage secret / Expires : 24month), and copy its value. You will not be able to see it again.

Secret of Azure App

Step 4 – Configure API permissions. Open API permissions, add Microsoft Graph “Application permissions”, and include Files.ReadWrite.All, and Sites.ReadWrite.All. Add also “Delegated permission” for include offline_access, openid.

IMPORTANT : Grant admin consent so the application can use these permissions.

Permissions in Azure App

PART 2 : Set Odoo System Parameters

You need your tenant_url, you can find it in your Azure portal, open Home > Dashboard. Look at the URL, it’s usually ends with onmicrosoft.com.

Tenant URL

In Odoo, open Settings > Technical > System Parameters.

Required parameters:

Optional parameter :

  • microsoft_drive_client_scope : Defines the permissions requested by Odoo. If not defined, Odoo uses the default scopes: offline_access, openid, Files.ReadWrite.All, Sites.ReadWrite.All.

PART 3 : Test the Configuration

Step 1 – In Odoo, go to your odoo profile and select “Account Security”,then click on the “grey cloud icon”.

Step 2 – You will be redirected to the Microsoft login page. Sign in and accept the requested permissions. You will then be redirected back to Odoo.

Step 3 – After authorization, Odoo should display a “blue cloud icon”. The connection is now established.

Test connexion from odoo profile

Usage

On the user preference page, the user can link their Microsoft Drive account to Odoo by cliking on the Drive button. This will redirect the user to the Microsoft authentication page, where they can log in and grant permission to Odoo to access their Drive account. Once the user has granted permission, they will be redirected back to Odoo, where their Drive account will be linked.

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed feedback.

Do not contact contributors directly about support or help with technical issues.

Credits

Authors

  • ACSONE SA/NV

Contributors

Other credits

The development of this module has been financially supported by:

  • ACSONE SA/NV

Maintainers

This module is maintained by the OCA.

Odoo Community Association

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

Current maintainer:

lmignon

This module is part of the OCA/storage project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

Metadata

Release files for odoo-addon-microsoft-drive-account 18.0.2.0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for odoo-addon-microsoft-drive-account 18.0.2.0.1.1
File Interpreter ABI Platform Actions
odoo_addon_microsoft_drive_account-18.0.2.0.1.1-py3-none-any.whl Python 3 none any Details for odoo_addon_microsoft_drive_account-18.0.2.0.1.1-py3-none-any.whl

Release files / odoo_addon_microsoft_drive_account-18.0.2.0.1.1-py3-none-any.whl

Download URL odoo_addon_microsoft_drive_account-18.0.2.0.1.1-py3-none-any.whl
Size 493.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4cc18b1f8e36431fee027efbce041f6b06f1c55fd43cc67445d92649847640ec
BLAKE2b-256 checksum
How to use checksums
166e5010bf50ccb63cb475ff01f7163ca31dd748f3aa784c62e1d3420e37d2bb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4

Security for odoo-addon-microsoft-drive-account 18.0.2.0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page