SuiteCRM and Microsoft Entra ID SAML single sign-on

SuiteCRM 8 can sign users in through Microsoft Entra ID over SAML, but each environment needs its own enterprise application, usernames must match, and logging out at Entra does not end the CRM session.

On this page

How SuiteCRM single sign-on with Entra ID works

If your staff should sign in to SuiteCRM with their Microsoft work accounts, SuiteCRM 8.7.0 and later supports SAML sign-on, enabled with AUTH_TYPE=saml, and Microsoft Entra ID can act as the SAML identity provider. The integration is a sign-on integration only. Entra ID vouches for who the user is at login, but it does not create, update, disable or remove SuiteCRM user accounts, and it does not assign SuiteCRM roles or teams. Those accounts and their permissions still have to exist and be managed inside SuiteCRM, so plan the account lifecycle as a separate piece of work.

The SuiteCRM admin guide's Azure SAML article covers the older SuiteCRM 7 setup and is useful as a reference for the Azure side of the configuration, including the enterprise application and the URLs it expects. It is not a drop-in guide for SuiteCRM 8. The 8.x settings are documented in the SAML configuration reference, which uses the nbgrp onelogin-saml-bundle underneath, and the names of the environment variables and certificate handling differ from 7. Read the 8.7.0 reference first and treat the 7 guide as background. Confirm the exact settings against the version you deploy, because SuiteCRM publishes a new minor release roughly every eight weeks.

The decisions to settle before configuration are the username match, the user accounts and the logout expectations. SuiteCRM must be able to match the identity Entra ID returns to an existing SuiteCRM user, so confirm which attribute carries the value and that it matches the SuiteCRM username exactly, including case and domain. Confirm also whether users who sign in through SAML must already exist, since sign-on does not create them. Finally, confirm with your security team that the logout limitation is acceptable: SuiteCRM 8.7.0 and later does not support IdP-initiated logout, so ending the Entra ID session does not end the SuiteCRM session.

What you need before configuring Entra ID SAML for SuiteCRM

Most SAML sign-on problems start before anyone opens the Entra admin center. The items below cover the SuiteCRM version and host stack, the Microsoft Entra rights and URLs you need, and the user records that must match. Check them in this order so the identity provider configuration has a stable target to point at.

SuiteCRM 8 version and host stack

Confirm the SuiteCRM 8 minor release you will run and check it against the compatibility matrix before you build anything. For SuiteCRM 8.10, the matrix lists PHP 8.2, 8.3 and 8.4, Apache 2.4, and MariaDB or MySQL on Linux, Unix or macOS. Pin the version in writing so the SAML settings you test match the release you deploy. Record the PHP and database versions in the same document.

Compatibility matrix

Existing SAML configuration and the 8.7.0 upgrade

If your SuiteCRM instance already uses SAML, the existing configuration must be updated before you upgrade to 8.7.0 or later. Treat this as a gate, not a follow-up task. Review the settings your current environment uses, plan the change in staging, and confirm the upgrade order with your release notes. Users who signed in through a pre-8.7.0 setup should be tested again after the change.

SuiteCRM 8 upgrade docs

Entra tenant rights and admin roles

Confirm who will create the enterprise application and the SAML settings in Microsoft Entra ID. The account needs rights to register enterprise applications and to configure single sign-on for them. Ask your identity team whether they require a change ticket or a separate admin role for production. Keep one named owner for each environment so that certificate renewals and claim changes are not lost when staff move on.

HTTPS and a stable URL per environment

The Entity ID, Reply URL and Sign-on URL all derive from the CRM address, so that address must be fixed before you start. Use HTTPS on each environment, and choose a hostname that will not change for the life of the app registration. Staging, test and production each need a separate URL and a separate Entra application. Changing the hostname later means updating the Entra settings and retesting sign-in.

A matching SuiteCRM user for every signer

Each person who signs in must already exist as a SuiteCRM user, with a username that matches the email address Entra ID sends. Check that addresses are spelled identically, including case and any aliases, before go-live. Build a list from your directory export, compare it with the SuiteCRM user table, and agree who handles mismatches. Users without a matching record will be refused at sign-on even when their Entra account is valid.

Azure SAML guide

Test instance and rollback plan

Plan a staging instance that mirrors production hosting, with its own Entra application and test accounts. Record how you will restore the previous login method if SAML fails, including whether local or LDAP login stays available for administrators. Confirm that a break-glass administrator can still reach the instance. The SuiteCRM migration guidance also recommends backing up files and database before any change, so include that step in the change record.

Configuring the Entra ID SAML application for SuiteCRM

This sequence creates a dedicated Entra ID enterprise application for each SuiteCRM environment, wires its SAML settings and certificates into SuiteCRM, and confirms that a test user signs in with matching attributes before production goes live.

  1. Create one enterprise application per environment

    In the Microsoft Entra admin center, create a separate enterprise application with SAML single sign-on for each SuiteCRM environment you run, such as staging, test and production. SuiteCRM's admin guide notes that SAML apps in Azure are unique to each instance, so do not reuse one application across environments. Record the application's object ID and tenant details for each one, and name them clearly so a staging change cannot be mistaken for a production change. The step is done when every environment has its own application and none of them share settings.

  2. Set Entity ID, Reply URL and Sign-on URL

    In each application's basic SAML configuration, set the Entity ID, Reply URL and Sign-on URL to the CRM's base URL followed by index.php?action=Login&module=Users, using the exact host name users type in their browser. A mismatch in scheme, host or path is a common cause of failed sign-in, so compare the values character by character against the environment's public URL. The step is done when all three fields match the environment's URL and the change is saved in the application.

  3. Configure SAML attributes and claims

    Set the SAML attribute and name identifier claims so that the value SuiteCRM receives matches the username of the SuiteCRM account, which the Azure SAML guide ties to the user's email address. Confirm with your identity team which attribute carries the email address in your tenant and whether it is the user principal name or a mail attribute. The step is done when a sample sign-in shows the expected identifier in the SAML response and that identifier equals an existing SuiteCRM username.

  4. Load certificates and SAML settings into SuiteCRM

    Download the federation metadata or signing certificate from each enterprise application and place the identity provider values into the SuiteCRM SAML configuration for that same environment. Keep the service provider certificate and private key in the environment's secret handling, not in source control, and follow the SAML configuration reference for the settings it expects. The step is done when the SuiteCRM environment holds the certificate that matches its own Entra application and no other.

  5. Set AUTH_TYPE to saml

    In the SuiteCRM 8 environment configuration, set AUTH_TYPE to saml so the instance uses the SAML authenticator for login, as documented for SuiteCRM 8.7.0 and later. Restart or redeploy the environment according to how it is hosted, then load the login page in a private browser window. Before switching this on in production, confirm the SAML configuration reference matches your SuiteCRM version, because an existing SAML configuration must be updated before upgrading to 8.7.0. The step is done when the login page redirects to Entra ID rather than showing the local password form.

  6. Assign users to the application

    In each enterprise application, assign the users or groups who should sign in to that environment, and confirm that every assigned user also has a SuiteCRM account with a matching username. The Azure SAML guide requires each user to exist in both Azure AD and SuiteCRM, so provision accounts first or agree how new joiners will be created. The step is done when a sample of assigned users appears in the application's user list and each has a corresponding SuiteCRM account.

  7. Enable SAML2Authenticate per user

    For each SuiteCRM user who will sign in through Entra ID, enable the SAML2Authenticate setting on that user account, as the Azure SAML guide describes. Keep a record of which accounts are enabled so you can review access during onboarding and offboarding. The step is done when the test accounts are enabled and an account left disabled is blocked from SAML sign-in as expected.

  8. Test in staging and confirm the SAML response

    Sign in to the staging instance with a test user and confirm three things: the redirect to Entra ID occurs, the SAML response carries the expected username attribute, and the user lands in the correct SuiteCRM account with the right roles. Repeat with a user who is not assigned to confirm access is refused. Document the results and the logout limitation, since SuiteCRM 8.7.0 and later do not support IdP-initiated logout, so signing out at Entra ID does not end the CRM session. Promote the same steps to production only after staging passes.

Separate Entra apps for staging, test and production

SuiteCRM's Azure SAML guidance notes that SAML applications in Azure are unique to each instance, so staging, test and production each need their own enterprise application. The reason is practical: the Entity ID, Reply URL and Sign-on URL are tied to the address of one CRM instance, and Entra ID will only send a SAML response to the URLs registered on the application that issued the request. A single shared application cannot point at three hostnames without weakening the control you are trying to build.

  • Different hostnames: each environment has its own CRM URL, and every SAML URL is built from that URL followed by index.php?action=Login&module=Users.
  • Independent changes: a certificate rotation, claim change or group assignment in staging should not alter production sign-on.
  • Separate audit trails: sign-in logs in Entra ID stay readable when each environment reports under its own application.
  • Controlled rollback: a broken test configuration can be disabled without touching the live application.

Before you start, confirm the exact hostname of each environment, because the registration cannot be finished until those URLs are fixed.

Matching Entra ID users to SuiteCRM accounts

This table compares what Entra ID must send, what SuiteCRM must hold for each user, and what the 7.x and 8.x guides say about each. Read it as a checklist for every user who will sign in through SAML. The main takeaway is that the username match is the step most likely to lock users out, so confirm the 8.x attribute mapping before any user is switched over.

ItemSuiteCRM 7.x (Azure SAML guide)SuiteCRM 8.x (confirm against reference)
User existenceUser must exist in both Azure AD and SuiteCRMConfirm whether SAML creates users on first sign-in or requires pre-created accounts
Username valueSuiteCRM username must match the Azure email addressConfirm which SAML attribute carries the username and whether it is the email address
Attribute source in Entra IDEmail address attribute on the enterprise applicationConfirm the claim name and source attribute in the SAML configuration reference
Per-user SAML flagSAML2Authenticate enabled on each user recordConfirm whether 8.x uses a per-user setting or only the global AUTH_TYPE=saml
Role and group assignmentRoles set in SuiteCRM; Azure group membership controls who can open the appConfirm how roles map from SAML attributes, if at all, and plan manual role assignment otherwise
Case and format checksEmail case and spelling must match exactly between systemsTest with a sample account whose email uses mixed case and an alias
Test accountsTest users must exist in the test SuiteCRM instanceCreate separate test users in each per-environment Entra ID application
Mismatch failureUser cannot sign in or lands on the wrong accountConfirm the error behavior and log location in your version before go-live

Handling SAML certificates and keys for SuiteCRM

The Entra signing certificate is what SuiteCRM relies on to confirm that a SAML assertion came from your identity provider. In the Entra enterprise application, that certificate has an expiry date, and the copy you give SuiteCRM must match the certificate Entra is currently signing with. Before go-live, record the expiry date for each environment's application in your change calendar, name an owner for it, and confirm with your Entra administrators whether a new certificate can be added to the same application before the old one lapses. The SuiteCRM SAML configuration reference is the place to confirm which identity provider certificate setting applies to your release.

SuiteCRM also needs its own service provider key pair. The public certificate is shared with Entra where the configuration requires it, and the private key stays on the SuiteCRM side, where it is used for the operations the reference describes, such as signing requests or decrypting assertions if you enable those options. Confirm from the reference which of these your configuration requires, because an unused key is extra material to protect. Generate a separate key pair for each environment, since each Entra application is unique to its instance, and never copy a production private key into staging or a test system.

Plan rotation well ahead of the Entra expiry date. Rotate in staging first, sign in with a test user, and confirm that login still succeeds before you change production, and keep the old certificate valid until the switch is verified. Treat the private key as a secret: ask your security team where secrets for SuiteCRM are stored in your environment, whether that is an environment file on the host, a secret manager or the container platform, and who can read them. Keep private keys out of source control, tickets and shared documents. The SuiteCRM 8.7.0+ SAML configuration reference lists the settings to update when a certificate changes.

How a SuiteCRM login travels through Entra ID

The login starts in the browser when a user opens the SuiteCRM Login endpoint. SuiteCRM sends a SAML AuthnRequest to Microsoft Entra ID, where the user signs in under the corporate tenant. Entra ID returns a signed SAML assertion to the SuiteCRM Login endpoint, and SuiteCRM matches the asserted identity to an existing SuiteCRM user before it starts a session. Check that the username in the assertion matches the SuiteCRM user, and that the boundary between the tenant and the self-hosted CRM is where you expect it.

Shows the SAML round trip between the browser, Entra ID and the self-hosted SuiteCRM login.

Hardening SuiteCRM SAML sign-on

Single sign-on moves the login decision to Microsoft Entra ID, so the controls around the identity provider, the service provider keys and the SuiteCRM settings decide how well the setup holds up. The cards below cover the checks to make before and after go-live, and they connect to the assignment, certificate and logout limits described above.

Enforce MFA and conditional access

SuiteCRM relies on Entra ID to decide who signs in, so the strength of the sign-in depends on the policies applied to the SuiteCRM enterprise application. Require multi-factor authentication and conditional access rules for that application in Entra ID, and test them with a sample user before go-live. Ask your identity team to confirm which sign-in conditions apply to the application, since SuiteCRM does not add its own second factor through SAML.

Azure SAML guide

Limit assignment to needed groups

Only users assigned to the enterprise application in Entra ID should be able to reach SuiteCRM through SAML. Assign security groups rather than individual accounts, and review membership on a schedule that matches your joiner and leaver process. Remember that each user must also exist in SuiteCRM with a matching username, so a removed user in Entra ID should also be disabled in SuiteCRM.

Keep a documented local admin fallback

If the identity provider, certificate or SAML settings fail, administrators need a tested way back into SuiteCRM. Keep a named local administrator account that is not tied to Entra ID, store its credentials in your privileged access process, and confirm in a staging instance that it still signs in after SAML is enabled. Document who may use it, when, and how the use is logged.

Protect service provider keys

The SAML service provider keys and certificates allow SuiteCRM to sign requests and verify responses, so their exposure would weaken the trust relationship. Keep the private key out of the repository and out of shared configuration files, and store it in the secret handling your team uses for SuiteCRM, such as Symfony secrets. Plan how the certificate will be rotated before its expiry date, and confirm the rotation steps with your SuiteCRM maintainer.

Serve SuiteCRM over HTTPS only

The Entity ID, Reply URL and Sign-on URL in the Azure setup are built from the CRM URL, so an HTTP address would send SAML traffic and login redirects over an unencrypted channel. Confirm that the CRM URL uses HTTPS everywhere, that HTTP redirects to HTTPS, and that the URLs registered in Entra ID match the production hostname exactly. Check this on each environment, since staging and test apps have their own URLs.

Review who can change SAML settings

Changes to the SAML environment settings, the identity provider metadata or the AUTH_TYPE value can alter who gets in and how sessions end. Limit write access to the server configuration and the Entra ID application owners, record every change, and review those changes after each SuiteCRM upgrade, since an existing SAML configuration must be updated before moving to 8.7.0. Keep an audit trail of who holds the Entra ID application administrator role.

Logout limits to explain to users

Signing out of Entra ID or the Microsoft portal does not end the SuiteCRM session. In SuiteCRM 8.7.0 and later, the SAML implementation does not support IdP-initiated logout or POST binding to the logout service, so a user who signs out at the identity provider can still have a live SuiteCRM session in the same browser or on a shared workstation. Tell users this before cutover, and tell them that SuiteCRM's own logout is the step that ends their CRM session. Confirm the exact behavior on your version against the SuiteCRM SAML configuration reference before you write the user message, because the wording you give users depends on it.

Plan session timeouts as the control that limits exposure after a user walks away. Review the session lifetime in your SuiteCRM 8 environment settings and the Entra ID sign-in frequency and session controls for the enterprise application, and agree the values with your security team. Shorter SuiteCRM sessions mean more re-authentication for sales and service staff, so test the setting with real workflows on staging. Note that Entra ID session settings govern the identity provider, not the CRM session, so each layer needs its own value.

Build a visible sign-out step into the user guidance and the rollout checklist. Put a short instruction in the onboarding material that says to use the SuiteCRM logout control on shared or public machines, and add it to your helpdesk script for people who report that they signed out of Microsoft but still see the CRM. For regulated teams, record the chosen timeout and sign-out instruction in the system security plan so that an assessor can see how the limit is handled. Ask the implementation partner to include this check in the staging test plan.

Common Entra ID SAML failures in SuiteCRM

This table lists the sign-on failures teams most often hit when connecting SuiteCRM to Microsoft Entra ID over SAML, with the likely cause and the fix for each. Read each row against your own Entra enterprise application and SuiteCRM settings, and check the SAML configuration reference for exact key names and values before changing anything.

FailureLikely causeFix
Login fails at the identity provider with a reply or destination errorThe Entity ID, Reply URL or Sign-on URL in Entra does not match the CRM URL used by SuiteCRMSet all three to the CRM URL followed by index.php?action=Login&module=Users, character for character, including scheme and host
User authenticates in Entra but SuiteCRM rejects the accountThe SuiteCRM username does not match the email address Entra sends as the user identifierAlign each SuiteCRM username with the user's Entra email address, then test with a single account before migrating others
User is redirected to SuiteCRM but does not get SAML sign-onSAML2Authenticate is not enabled for that user, so the account still expects another login methodEnable SAML2Authenticate on the affected user record, then sign in again in a new browser session
Sign-on fails suddenly with signature or certificate errorsThe signing certificate in Entra was renewed or replaced, or the certificate SuiteCRM trusts is out of date or expiredCompare the certificate in the Entra app with the one configured in SuiteCRM, update the copy SuiteCRM uses, and set a renewal reminder before expiry
Test users sign in to production, or production changes affect stagingOne Entra application is shared across staging, test and production, so reply URLs and certificates conflictCreate a separate Entra application for each SuiteCRM instance, each with its own Entity ID, reply URL and certificate
Users loop between SuiteCRM and the identity provider after an upgradeThe SAML configuration was not updated before upgrading to 8.7.0 or later, so the old settings no longer match the new implementationUpdate the SAML configuration to the 8.7.0+ format before the upgrade, then verify the AUTH_TYPE=saml setting and the Entra app values on staging
Users expect logout at Entra to end their CRM sessionSuiteCRM 8.7.0 and later does not support IdP-initiated logout, so the CRM session stays openTell users to log out of SuiteCRM directly, and document this limit in user guidance and the rollout plan

Questions buyers ask before configuring SuiteCRM with Entra ID

How much effort does SuiteCRM SAML sign-on with Entra ID take?

The configuration itself is small, but the effort comes from the surrounding work: creating one enterprise application per environment, agreeing which identifier is the username, deciding how users are assigned, and testing login and logout in staging before production. The main drivers are the number of environments, how many user populations need access, whether your SuiteCRM instance is already on 8.7.0 or later, and how much of the existing setup is undocumented. Ask any partner for a written scope that lists each environment, each test case and who signs off on each step.

Can our own team set up SuiteCRM SSO with Entra ID without outside help?

Yes, if you have an administrator who can manage Entra ID enterprise applications and a SuiteCRM administrator who can edit the environment configuration and manage certificates. The steps are documented in the SuiteCRM admin guide for Azure SAML and the 8.7.0+ SAML configuration reference. Teams without staff who know both systems often spend the most time on certificate handling, username mismatches and the logout limitation, so plan a review of the work even if you do the build yourself.

What do the Entra and SuiteCRM admins need to provide?

Entra administrators need permission to create and configure an enterprise application, to assign users or groups to it, and to export or rotate its signing certificate. SuiteCRM administrators need shell or deployment access to set the SAML environment values, to store the service provider certificate securely, and to create or confirm each user record. Both teams must agree on the Entity ID, the Reply URL and Sign-on URL for each instance, which all follow the CRM URL plus index.php?action=Login&module=Users, and on which email address is the username.

How long should SAML testing run in staging before production?

There is no supplied timeline for this, so set the length from your own test plan rather than a fixed duration. Testing should cover a sign-in for every user type, a sign-in for a user who does not exist in SuiteCRM, a session that expires, a password or account change in Entra, a removed user, and a repeat of the upgrade path. Keep staging on its own Entra application so test results do not affect production users. Ask your partner to state the test exit criteria in the written scope.

Can logging out of Entra end the SuiteCRM session?

Not with the current SAML implementation. From 8.7.0 onward, SuiteCRM does not support IdP-initiated logout or POST binding to the logout service, so signing out at the identity provider does not end the SuiteCRM session. Users must log out of SuiteCRM itself. Explain this to users before go-live, and include it in your access review and offboarding procedure, because a removed user may keep an active CRM session until it expires or is ended in SuiteCRM.

How do SAML changes affect an upgrade to SuiteCRM 8.7.0?

An existing SAML configuration must be updated before you upgrade to 8.7.0, according to the SuiteCRM 8 upgrade documentation. Read the 8.7.0+ SAML configuration reference, record your current settings, and test the updated configuration in staging against the target version. Plan a rollback point, since login failure would block every user. The upgrade effort depends on how many environments use SAML and how much custom authentication code or settings you already have.

What drives the cost of this work, and what should a quote include?

Cost depends on the number of environments and Entra applications, the number of identity populations, certificate and secret handling, testing depth, and whether the upgrade to 8.7.0 or later is included. Ask for a fixed-scope quote with the environments listed, deliverables named, test cases described, the handover method for certificates and configuration, and what happens if a retest fails. Also ask which costs recur, such as certificate renewal and support for later SuiteCRM releases.

How DeployOpen scopes the Entra ID SSO work

The sequence below moves from a written scope to a tested, documented sign-on configuration in your own infrastructure, with each step closing on a check your team can verify. It keeps the Entra ID settings, certificates and per-environment apps under your control from the start.

  1. Agree the written fixed scope

    Before any configuration work, DeployOpen and your team agree a written scope that names the SuiteCRM 8 environments in play, the SAML identity provider tenant, the users who will sign in, and the deliverables. Your team confirms which SuiteCRM version is running and whether it is 8.7.0 or later, since the SAML setup depends on that release. The step is done when both parties have signed off on the scope document and the exclusions, including what is not covered such as logout behavior changes or other identity providers.

  2. Inventory environments and identity settings

    DeployOpen works with your Entra ID administrators to list each SuiteCRM environment (staging, test and production), its public CRM URL, and the Entra ID tenant and user groups that will be assigned. The inventory also records how usernames map to Entra ID email addresses and which existing users must match. The output is a single inventory sheet that your team approves, so each environment gets its own enterprise application and no environment shares one.

  3. Configure the enterprise application in your tenant

    Your Entra ID administrators, with DeployOpen guidance, create one enterprise application per SuiteCRM environment in your own tenant. The Entity ID, Reply URL and Sign-on URL are set from the CRM URL followed by the login path documented in the SuiteCRM admin guide, and user assignment is restricted to the approved groups. Your team owns the tenant and the admin roles; DeployOpen works through access you grant and records every setting changed. The step closes when each application's settings match the inventory.

  4. Set SAML settings and certificates in the environment

    DeployOpen sets the SuiteCRM SAML environment values, enables the SAML login type, and places service provider certificates and keys in the secret handling your team has chosen, rather than in plain files in the repository. Certificates are generated or imported per environment and their expiry dates are written into the handover record. The step is verified when a SAML login attempt reaches the identity provider and returns to SuiteCRM without error on the staging environment.

  5. Test in staging with your own accounts

    Your team supplies test accounts in Entra ID and matching SuiteCRM users, and DeployOpen runs the sign-in path with each account type, including users who are not assigned to the application, users whose email does not match a SuiteCRM username, and users with existing sessions. Failed cases are logged with the exact error and fixed before production. The step closes when your team has run the agreed test script and signed off the results.

  6. Validate logout behavior with your team

    DeployOpen demonstrates to your team that signing out of Entra ID does not end the SuiteCRM session in the 8.7.0 and later SAML implementation, since IdP-initiated logout is not supported. Your team confirms the user messaging, session lifetime settings and any compensating control, such as shorter session timeouts or a documented sign-out step in SuiteCRM. The step is complete when the logout limitation and the chosen controls are written down and accepted.

  7. Deliver handover documentation and support options

    DeployOpen delivers the handover pack: the environment inventory, the enterprise application settings per environment, certificate locations and expiry dates, the test script with results, the logout limitation notes and the rollback steps. Your team reviews the pack and the production cutover is scheduled under your change process. If you want help with certificate renewals, SuiteCRM upgrades or new environments, a retainer can be scoped separately. The step closes when your team accepts the handover in writing.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.