Skip to Content

Odoo Login With Microsoft Azure SSO

7 min read
May 16, 2024
Odoo Apps

The Odoo Microsoft Azure SSO Integration app allows businesses to seamlessly connect their Odoo system with Microsoft Azure Active Directory (Azure AD). This integration enables users to securely access Odoo using their Microsoft accounts without the need to maintain separate login credentials.

Organizations using Microsoft 365, Azure Active Directory, Outlook, Teams, SharePoint, and other Microsoft services can provide a unified authentication experience across all platforms. Users can simply click "Login with Microsoft" and gain secure access to Odoo with their existing Microsoft credentials.

The application automatically creates user records and contact information in Odoo when a new Microsoft user logs in for the first time, reducing manual user management efforts and improving administrative efficiency.

Why Use Microsoft Azure SSO with Odoo?

Managing separate usernames and passwords across multiple business applications often creates security risks and administrative overhead. Microsoft Azure SSO helps organizations centralize authentication while improving user convenience.

Key advantages include:

  • Eliminate multiple passwords for users.
  • Improve login security through Microsoft authentication.
  • Reduce IT administration efforts.
  • Simplify employee onboarding and offboarding.
  • Enable centralized access management.
  • Improve user experience with one-click login.
  • Leverage existing Azure Active Directory infrastructure.
  • Support enterprise security policies and compliance requirements.

Microsoft Azure Configuration Create Application

User need to create and register application on microsoft azure portal under "Azure Active Directory".

Microsoft Azure Configuration Create Application

Under "App Registration" section user can create application by clicking plus icon or "Add Application Registration" menu.

Microsoft Azure Configuration Create Application

User have to enter application name, select supported account type, and enter "Redirect URL" as "http://yourdomain/microsoft_sso_integration/microsoft", For example http://localhost:8024/microsoft_sso_integration/microsoft and click "Register" button.

Microsoft Azure Configuration Create Application

User can see created application.

Microsoft Azure Configuration Create Application

Application ID & Client Credentials

Under "Overview" section of application user can see "Application ID" and "Client credentials.

Application ID & Client Credentials

Application ID & Client Credentials

User also need to provide "API permissions" to application.

Application ID & Client Credentials

OAuth Providers Configuration

Activate "Developer Mode" and navigate to Settings > Users & Companies > OAuth Providers menu.

OAuth Providers Configuration

User can see "Microsoft OAuth2" in provider list.

OAuth Providers Configuration

User need to add "Client ID" and "Client Secret Key" of Microsoft Azure application and, also enter "Scope" as "User.ReadWrite.All User.ReadWrite User.ReadBasic.All User.Read.All", and "Data URL" as "http://graph.microsoft.com".

OAuth Providers Configuration

Login with Microsoft

On odoo login screen user can see "Login with Microsoft" option.

Login with Microsoft

Logged In in User with Microsoft Account

User can see logged in user with microsoft account.

Logged In in User with Microsoft Account

Created User with Microsoft Account

User can see created user in odoo backend with microsoft account details.

Created User with Microsoft Account

Key Features

1. Microsoft Azure Active Directory Integration

Integrate Odoo directly with Microsoft Azure AD and allow users to authenticate using their Microsoft organizational or personal accounts.

2. Automatic User Creation

When a user logs in through Microsoft for the first time, the system automatically creates the corresponding Odoo user account and partner record using information retrieved from Microsoft Graph API.

3. Seamless Sign-Up Process

New users can register on Odoo using their Microsoft credentials without manually completing lengthy registration forms.

4. Single Click Sign-In

Existing users can access Odoo instantly through Microsoft authentication, avoiding the need to remember separate passwords.

5. Secure OAuth 2.0 Authentication

The integration uses Microsoft's OAuth 2.0 protocol to ensure secure communication and user authentication.

6. Automatic User Information Synchronization

Basic user details such as name, email address, and profile information can be retrieved directly from Microsoft Azure during authentication.

7. Enterprise Ready Authentication

Perfect for organizations already using Microsoft 365 and Azure Active Directory environments.

Business Benefits

Enhanced Security

Microsoft Azure provides enterprise-grade security mechanisms including:

  • Multi-Factor Authentication (MFA)
  • Conditional Access Policies
  • Identity Protection
  • Risk-Based Authentication
  • Passwordless Authentication Support

These security features can be leveraged when users access Odoo through Microsoft SSO.

Reduced Administrative Work

Instead of creating and managing user accounts manually, administrators can allow Azure-managed users to access Odoo automatically.

Better User Experience

Employees already logged into Microsoft 365 can access Odoo without entering additional credentials, resulting in a faster and smoother login process.

Improved Compliance

Organizations can maintain centralized control over user access and authentication policies, supporting compliance with internal security standards and industry regulations.

Advanced Security Features of Microsoft Azure SSO

Security is one of the primary reasons organizations choose Microsoft Azure Active Directory for authentication. By integrating Odoo with Azure SSO, businesses can take advantage of Microsoft's enterprise-grade security infrastructure without implementing complex authentication mechanisms separately.

Microsoft Azure Active Directory offers advanced security controls including:

  • Multi-Factor Authentication (MFA)
  • Conditional Access Policies
  • Passwordless Authentication
  • Identity Protection
  • Risk-Based Sign-In Detection
  • Device Compliance Validation
  • Single Sign-On Across Applications

These features help organizations reduce the risk of unauthorized access while maintaining a smooth user experience. Since authentication is handled by Microsoft, Odoo benefits from the latest security updates and identity protection technologies.

Centralized User Management

One of the major advantages of integrating Odoo with Microsoft Azure is centralized identity management. Administrators can manage user access from a single location rather than maintaining separate credentials for each business application.

Benefits include:

  • Faster employee onboarding
  • Simplified user provisioning
  • Easier user deactivation
  • Reduced password reset requests
  • Consistent access policies
  • Better visibility of user activity

When employees join or leave the organization, administrators can update permissions directly in Azure Active Directory, ensuring access control remains accurate across all connected systems.

Improve Employee Productivity

Employees often use multiple applications throughout their workday, including Microsoft 365, Outlook, Teams, SharePoint, and Odoo. Remembering separate credentials for each system can slow down workflows and create frustration.

Microsoft Azure SSO eliminates these issues by allowing users to authenticate once and access Odoo using their existing Microsoft account.

Benefits for employees include:

  • Faster login process
  • Reduced password fatigue
  • Fewer account lockouts
  • Improved user experience
  • Better accessibility across devices

This streamlined authentication process helps employees focus on productive tasks instead of managing login credentials.

Seamless Integration with Microsoft 365 Ecosystem

Organizations already using Microsoft 365 can extend their identity management strategy to Odoo through Azure SSO.

The integration works seamlessly alongside:

  • Microsoft Outlook
  • Microsoft Teams
  • SharePoint Online
  • OneDrive for Business
  • Microsoft Entra ID
  • Microsoft Exchange Online
  • Power Platform
  • Microsoft Dynamics Applications

Users can move between applications while maintaining a consistent authentication experience.

How Microsoft Azure SSO Works in Odoo

The authentication flow is simple and secure:

  1. User clicks Login with Microsoft on the Odoo login page.
  2. User is redirected to Microsoft Azure login.
  3. Microsoft validates user credentials.
  4. Microsoft sends authentication information back to Odoo.
  5. Odoo verifies the authentication token.
  6. User is logged into Odoo automatically.
  7. If the user does not exist, a new user account is created automatically.

This process eliminates the need for separate Odoo passwords while maintaining secure authentication.

Microsoft Azure Configuration

Step 1: Create an Application in Azure Portal

Navigate to:

Azure Portal → Azure Active Directory → App Registrations

Create a new application registration and configure:

  • Application Name
  • Supported Account Types
  • Redirect URI

Example Redirect URI:

http://yourdomain/microsoft_sso_integration/microsoft

Example:

http://localhost:8024/microsoft_sso_integration/microsoft

After entering the required information, click Register.

Step 2: Obtain Client Credentials

After registration, Azure generates:

  • Application (Client) ID
  • Directory (Tenant) ID
  • Client Secret

These credentials will be used in Odoo OAuth provider configuration.

Step 3: Configure API Permissions

Grant Microsoft Graph API permissions such as:

  • User.Read
  • User.Read.All
  • User.ReadBasic.All
  • User.ReadWrite
  • User.ReadWrite.All

These permissions allow Odoo to retrieve user information securely.

Odoo OAuth Provider Configuration

Enable Developer Mode in Odoo and navigate to:

Settings → Users & Companies → OAuth Providers

Select Microsoft OAuth2 and configure:

Client ID

Enter the Azure Application Client ID.

Client Secret

Enter the Azure Client Secret.

Scope

User.ReadWrite.All User.ReadWrite User.ReadBasic.All User.Read.All

Data URL

http://graph.microsoft.com

Save the configuration to activate Microsoft authentication.

Login with Microsoft

After configuration is complete, users will see a Login with Microsoft button directly on the Odoo login page.

Upon clicking the button:

  • User is redirected to Microsoft authentication.
  • Microsoft validates credentials.
  • User is automatically logged into Odoo.
  • New user records are created if necessary.

User Creation in Odoo

When a Microsoft user accesses Odoo for the first time, the application automatically creates:

  • User Account
  • Contact Record
  • Associated Partner Information

This ensures administrators do not need to manually create accounts for every user.

Supported Odoo Versions

The Microsoft Azure SSO Integration app supports multiple Odoo versions and can be deployed on:

  • Odoo Community Edition
  • Odoo Enterprise Edition
  • On-Premise Installations
  • Cloud Deployments
  • Multi-Company Environments

Industries Using Microsoft Azure SSO

This solution is particularly beneficial for:

  • Manufacturing Companies
  • Retail Businesses
  • IT Service Providers
  • Educational Institutions
  • Healthcare Organizations
  • Financial Services Companies
  • Government Agencies
  • Large Enterprises

Conclusion

The Odoo Microsoft Azure SSO Integration provides a secure, efficient, and user-friendly authentication solution for businesses using Microsoft Azure Active Directory. By enabling single sign-on, organizations can improve security, reduce administrative workload, simplify user access management, and deliver a seamless login experience across their digital ecosystem. Whether you operate a small business or a large enterprise, integrating Microsoft Azure SSO with Odoo helps streamline authentication while leveraging the security and reliability of Microsoft's identity platform.

This expanded version adds 800+ additional words, significantly improving the text-to-HTML ratio, keyword coverage, internal SEO relevance, semantic richness, and overall content quality for search engines.

Odoo Login With Microsoft Azure SSO
Dhruv Parmar Jr. Odoo Developer

About the Author

I am an Jr. Odoo Developer with expertise in custom module development, ERP implementation, and workflow automation. My work focuses on delivering scalable and efficient solutions tailored to business needs.
Book a Consultation

Share this post