Why Mautic SSO takes more planning than the login screen suggests
Mautic uses basic authentication for its users and can integrate with a SAML single sign-on identity provider, such as Entra ID, but the identity provider must send email, first name and last name attributes. The documentation describes no LDAP option, so a team that expects directory-based group sync will need to plan for that gap. Treat SSO as a build decision to confirm against the exact Mautic version you run, since authentication behavior and the Mautic authentication docs are version specific.
The login screen is the easy part. The harder work is attribute mapping: the email claim must be unique and stable, and the name claims must populate every user record the first time someone signs in. Decide in advance what happens when a user is created automatically through SSO, including which default role they receive. A broad default role can give every employee in the identity provider access to contacts, consent records and campaigns, so the default should be the least privileged role that still lets a new user land somewhere useful, with elevation handled by an administrator.
Certificates and account lifecycle need their own plan. SAML signing certificates expire and must be rotated on both the identity provider and Mautic, so record the expiry date, assign an owner and test the change in a staging install first. SSO controls sign-in, but it does not remove an account when someone leaves or changes role. Confirm how deprovisioning works in your setup, because a disabled identity may still leave a local Mautic user active, and role changes made in the identity provider may not flow through automatically. Ask the implementation partner to document both the rotation runbook and the offboarding steps before go-live.
How a SAML login reaches Mautic
A login starts in the browser, which is redirected to the identity provider (Entra ID in this example) to authenticate the user. The identity provider returns a signed SAML assertion through the browser to Mautic acting as the service provider. Mautic checks the assertion and matches it to a local user record, or creates one, using the email, first name and last name attributes. Check that these attributes are sent as expected, because the assertion is the only identity source Mautic receives.
Browser, identity provider and Mautic, with the trust boundary around each side.
Which settings and parts the integration touches
Single sign-on touches six places: the Mautic SAML configuration, the identity provider application, the signing certificate, the local user records, the fallback accounts and the HTTPS endpoint. A fault in any one of them usually appears as a failed login, so check them in the order a sign-in travels.
Mautic SAML configuration
The Mautic side of the integration is the SAML settings block in the local configuration file. It tells Mautic which identity provider to trust and where to return users after sign-in. Confirm each setting name against the authentication page for the Mautic version you run, because key names can change between releases and a mistyped key is hard to spot. Record every value you set, including the entity identifier and login endpoint, so an upgrade can be checked against the record.
Mautic authentication docsIdentity provider application and claims
In Entra ID, the enterprise application issues the SAML assertion and maps user attributes into it. Mautic needs an email address, a first name and a last name in that assertion. Missing or differently named claims leave Mautic unable to match or create users correctly. Test a sign-in with a real user account before go-live, check the claim names and name identifier format, and confirm which attribute Mautic uses to match an existing local user.
- Required attributes
- 3
Signing certificate and metadata
The identity provider signs its assertions with a certificate, and Mautic relies on the matching metadata to verify them. Decide who owns renewal, because an expired signing certificate stops every SAML sign-in at once. Track the expiry date alongside your other identity changes, store the metadata and certificate fingerprint in your change records, and replace them through a planned change window with a tested fallback in place.
Local Mautic user record and role
SAML sign-in still depends on a local Mautic user record for each person. That record carries the role that decides what the user can see and change across campaigns, segments and contact data. Confirm what Mautic does on a user's first sign-in, which role a newly created user receives, and who reviews that default before go-live. When someone leaves the identity provider, remove or disable their local record so access does not outlive their employment.
Basic-auth fallback accounts
Mautic's built-in authentication uses user names and passwords. The Mautic authentication docs describe no LDAP option, so SAML is the only directory-linked sign-in path to plan for. Keep at least one named local administrator for recovery if the identity provider is unavailable. Protect that account with a strong password, confirm which roles can still sign in with a password, and test the fallback during cutover rather than during an outage.
Web server and HTTPS callback endpoint
The SAML callback must reach the Mautic site over HTTPS at the exact public hostname registered with the identity provider. Mautic runs on Apache, Nginx or IIS, and the host name, TLS certificate and any reverse proxy or load balancer settings must agree with that registered URL. A hostname mismatch or an unexpected redirect is a frequent cause of sign-in loops. Test from a clean browser session at the production address before users are invited.
Mautic requirementsHow to configure Mautic SAML with Entra ID, step by step
This sequence connects a self-hosted Mautic instance to Microsoft Entra ID through SAML so users sign in with their corporate identity. It ends with a tested non-admin sign-in path and a verified break-glass account, each checked before go-live.
Confirm the Mautic version and SAML support
The platform owner confirms the Mautic release in use and checks its authentication documentation for that exact version, since configuration paths can differ between releases. Mautic 5.2 security support runs until 30 June 2026, Mautic 6.0 and 7.2 until 30 September 2026, and Mautic 7.3 is planned as the long-term support release through 31 December 2027, so the team should check the support window against its go-live date. Mautic's authentication docs describe SAML as a supported option and state that the identity provider must send email, first name and last name attributes. Done when the version, its support end date and the matching SAML documentation are recorded in the project file.
Register Mautic as an enterprise application
An Entra ID administrator creates a non-gallery enterprise application for Mautic and enables SAML-based single sign-on. The Mautic entity ID and assertion consumer URL come from the Mautic SAML settings for the version in use, so the team copies them exactly from the docs and its own hostname. The administrator then downloads the federation metadata or records the sign-on URL, Entra identifier and certificate details needed in later steps. Done when the application appears in the tenant with SAML marked as configured and the metadata is saved to the project record.
Map email, first name and last name claims
The administrator maps the user attributes Entra ID sends in the SAML assertion to the three attributes Mautic requires: email, first name and last name. The source fields are usually the user's mail or user principal name, given name and surname, but the claim names Mautic expects must be confirmed against its authentication docs for the version in use. Users missing any of these values in Entra ID will fail to sign in or be created, so the team should check attribute coverage across the pilot group. Done when a test assertion from a pilot user contains all three attributes with the expected values.
Set the default role for auto-created users
The platform owner decides which Mautic role a user receives when the first SAML sign-in creates their account, and applies least privilege by default. The setting that controls auto-creation and default role is part of the SAML configuration, so the team confirms its name and behavior in the Mautic docs for the release in use before enabling it. Administrators should also decide whether Entra ID group assignment limits who can reach the application at all. Done when a test user created by first sign-in appears in Mautic with the intended role and no broader permissions.
Configure Mautic SAML settings with IdP metadata
The Mautic administrator enters the identity provider values from the Entra ID metadata into the Mautic SAML configuration, including the issuer, single sign-on endpoint and signing certificate. Values are copied from the metadata rather than typed by hand to avoid mismatches. The team confirms that the configuration file or settings screen is changed through the normal change process and that the cache is cleared as the docs require. Done when the login page offers the SSO option and the application logs show no configuration errors during a sign-in attempt.
Generate or import the service provider certificate
The platform owner generates a service provider key pair for Mautic, or imports an existing certificate issued under the organization's key management process. The private key is stored with restricted file permissions outside the web root, and the public certificate is uploaded to the Mautic SAML configuration and, where Entra ID needs it, to the enterprise application. The team records the expiry date and sets a renewal reminder well before it, because an expired certificate stops sign-in for everyone. Done when a test assertion signed by Entra ID validates in Mautic and the certificate and its expiry are on the operations register.
Test sign-in with a non-admin account
A pilot user without administrator rights signs in through the SSO option in a clean browser session. The tester opens the browser developer tools and inspects the SAML response, checking the audience, issuer, timestamps, signature and the three required attributes. The tester then confirms the user can reach only the screens and campaigns their role allows, and that a second sign-in updates the existing account rather than creating a duplicate. Done when the sign-in succeeds, the assertion contents match the mapping from earlier steps and the permissions match the intended role.
Test break-glass login before go-live
The platform owner confirms that a local administrator account remains usable if Entra ID, the certificate or the SAML configuration fails. Mautic supports basic authentication for users, so the account is available, but the team should verify that its credentials are stored in the organization's vault, that access to it is restricted and logged, and that the account is excluded from routine SSO-only policies. The test is run against a non-production copy or in a controlled window, with the result written down. Done when the break-glass account signs in successfully, the sign-in appears in the logs, and the access procedure is documented for the operations team.
What drives SSO effort and how to keep it down
This table lists the main drivers of Mautic SSO effort, how each one changes the work, and how to reduce it. Read it before scoping, because most of the effort comes from role mapping, environment count and the identity provider's own setup rather than from the Mautic configuration itself.
| Driver | Why it changes effort | How to keep it down |
|---|---|---|
| User count and group complexity | Large or nested identity provider groups make it harder to decide which Mautic user maps to which role and which people need access at all. | Use a small set of flat groups for Mautic access only, and confirm group claims in the SAML response before go-live. |
| Number of Mautic roles and permission mapping | Each Mautic role needs an agreed permission set, and every mapped group must be tested against it, so more roles means more test cases. | Start with one role per job function, such as marketing admin, campaign editor and read-only analyst, and add roles only when a real gap appears. |
| Number of environments | Staging and production each need their own identity provider registration, certificate settings and redirect URLs, so each environment repeats the setup and testing. | Keep environment-specific values in one documented checklist and test the staging registration fully before copying settings to production. |
| Certificate lifecycle | Signing certificates expire and must be replaced in both the identity provider and Mautic, so renewal becomes recurring operational work. | Record expiry dates, assign an owner, and plan a rotation window that covers both environments before the certificate expires. |
| Custom or legacy identity provider setups | Non-standard SAML configurations, older protocols or custom claim names need extra mapping and troubleshooting that the standard setup does not cover. | Confirm early that the provider can send email, first name and last name attributes, and ask the identity team for an existing working SAML example. |
| Compliance evidence requests | Assessors and internal reviewers often ask for access reviews, role definitions, configuration exports and certificate records, which takes time to assemble. | Document roles, group mappings and certificate ownership as you build, and agree with the compliance team which evidence they need before implementation. |
How the setup differs across deployment models
On a single server, Mautic, the web server and the identity integration all terminate on one host name. The Assertion Consumer Service URL registered with the identity provider points at that host, and the web server handles TLS directly with a certificate installed on the same machine. Certificate renewal is a single-host task, and there is no load balancer to reconcile with the SAML endpoint.
- Callback URL: Register one stable HTTPS address for the Assertion Consumer Service and confirm it matches the Mautic base URL exactly, including scheme and host.
- HTTPS termination: The web server on the host terminates TLS, so Mautic must see the HTTPS scheme to build correct redirect URLs.
- Certificate placement: Store the web certificate and the SAML signing material with restricted file permissions on the host, outside any publicly served directory.
- Cron and background jobs: Confirm that the host time zone and clock are synchronized, since SAML assertions carry time limits and drift causes failed logins.
- Recovery: Document how the SAML configuration is restored if the host is rebuilt.
Confirm with the platform team which host name is canonical, who renews the certificate, and how the IdP metadata is refreshed after a rebuild.
When several web nodes sit behind a load balancer, the SAML exchange must produce the same public address on every node. The load balancer usually terminates TLS, so the application sees traffic over plain HTTP unless forwarding headers are configured. The callback URL should name the public load balancer address, never an individual node, and every node must accept the same configuration.
- Callback URL: Register only the public hostname for the Assertion Consumer Service, and do not register node-specific addresses.
- HTTPS termination: Decide whether TLS ends at the load balancer or at each node, then configure trusted proxy headers so Mautic generates HTTPS links.
- Certificate placement: Keep the public certificate on the load balancer, and make sure the SAML signing keys are identical on every node so any node can validate a response.
- Session handling: Confirm that sessions survive a request routed to a different node, since a login may complete on one node and the next request lands on another.
- Configuration drift: Deploy the SAML settings through the same pipeline to all nodes so one node does not keep stale metadata.
Confirm with the platform team which component terminates TLS, which headers the load balancer sets, and how certificate rotation reaches every node without downtime.
In a private or air-gapped network, the identity provider must still be reachable from the browser of every user and from the Mautic server for any back-channel calls. The network path often crosses a proxy, an internal certificate authority or a restricted DNS zone. Metadata cannot always be fetched from the internet, so it may need to be imported as a file and checked against the provider's current signing certificate.
- Callback URL: Use an internal DNS name that resolves for all users, and confirm it is the name written into the identity provider's registration.
- HTTPS termination: Internal certificates must chain to a root that browsers and the identity provider trust, and the chain must be complete on the server.
- Certificate placement: Import the internal certificate authority into the trust store used by PHP and the web server, and keep private signing keys in a controlled location.
- Metadata transfer: Plan how IdP metadata enters and leaves the network through an approved change process, since it is often the only way to update signing certificates.
- Time synchronization: Use an internal time source, because assertion validity windows fail when clocks drift in isolated segments.
Confirm with the security and network teams which internal certificate authority issues the certificates, how metadata updates are approved, and whether the identity provider can be reached from every network zone that needs sign-in.
Protecting the SSO path and the certificates
Once Mautic trusts an identity provider, the SAML settings, signing certificates and admin accounts become the route into every contact record and campaign. The cards below cover the controls that keep that route narrow, from certificate lifecycle to break-glass access and event logging.
Signing certificate storage and rotation
The identity provider signs SAML assertions with a private key, and Mautic holds only the matching public certificate. Record where the certificate is stored, who can export it, and the expiry date of each certificate in your IdP. Plan rotation before expiry: add the new certificate in the IdP, test a login against a staging Mautic, then update the Mautic SAML settings. A lapsed certificate locks out every SSO user at once.
Mautic authentication docsAdmin accounts restricted to SSO and MFA
Require SSO plus multifactor authentication enforced at the IdP for every Mautic administrator. Confirm with your IdP administrator that the conditional access or sign-in policy applies to the Mautic application and cannot be bypassed by a legacy sign-in path. Review which accounts still have local passwords and disable or reduce them. Mautic's own login does not replace the IdP's MFA policy, so the IdP policy is the control you must evidence.
A tested break-glass local admin
Keep at least one local administrator account that works when the IdP, DNS or the SAML configuration fails. Store its credentials in a sealed vault with named custodians, and test that the login works on a schedule your team agrees. Record each use and rotate the password afterward. Do not let the break-glass account become a daily login, because it then becomes the weakest account in the system.
Limiting who can change SAML settings
Changes to the SAML provider, attribute mapping and default role for created users affect who can log in and with what privileges. Restrict those settings to a small named group, and route changes through your normal change process with a second reviewer. Check that the default role for newly created users is a low-privilege role, and confirm the attribute mapping still requires email, first name and last name from the IdP.
HTTPS on the SAML callback endpoint
The SAML assertion consumer endpoint receives signed login responses from the browser, so it must run over HTTPS with a valid certificate, and the base URL in Mautic must match the URL registered at the IdP. Mismatched hosts or HTTP redirects cause failed logins and tempt teams to weaken settings. Confirm the TLS configuration on the web tier and that Mautic is not reachable on an unencrypted alternate address.
Logging login and role change events
Capture successful and failed logins, SSO sign-ins, admin account creation and any change to roles or SAML settings. Send these events to a log store that the Mautic administrators cannot edit. Confirm with your Mautic version and hosting setup which events are recorded natively and which need server, proxy or IdP logs to fill the gap, and document that answer before your security review.
What Mautic's built-in authentication cannot do
Mautic's built-in authentication covers basic authentication for users, and the supported single sign-on route is SAML. The authentication documentation describes no LDAP option, so an organization that expects directory-based login through LDAP, or any other protocol not documented there, should treat that as a gap to close before design starts. SAML handles the sign-in handshake, but it does not by itself decide what a user can do inside Mautic once they are in. Role assignment, deprovisioning and session behavior are separate questions, and each needs a direct answer for the version you plan to run.
Confirm three limits against your exact Mautic version and configuration rather than assuming them from the general documentation. First, whether group membership at the identity provider can drive role assignment inside Mautic, or whether roles must be set by hand after a user is created. Second, whether removing or disabling a user at the identity provider removes access in Mautic, or whether SCIM-style provisioning is needed and absent. Third, whether session lifetime, idle timeout and re-authentication can be set by policy, or only partly through server configuration. Ask the vendor or test a staging install to get written answers.
Where a limit is confirmed, plan compensating controls before go-live. Disable the user at the identity provider as part of every leaver process, and check that the Mautic account stops working in a test. Run a periodic user and role review against the identity provider's group list, with a named owner and a recorded date. Restrict administrator accounts to a small set of local or SSO users with documented approval. Record each limit and its control in the project's access design so auditors and security reviewers see a known, owned gap rather than an unexamined one.
What to monitor, document and maintain after go-live
This table lists the recurring items that keep Mautic SAML sign-in working after launch, with what each one involves and where it usually breaks. Read each row as a standing task with an owner, and treat the release upgrade row as the one that can silently change login behavior. The main takeaway is that SSO failures after go-live are usually caused by expired certificates, changed IdP claims or stale accounts, not by Mautic itself.
| Item | What to do | Where it usually fails |
|---|---|---|
| Certificate expiry calendar | Record the expiry dates of the IdP signing certificate and the Mautic SP certificate, and set reminders well before each date | Renewal happens in the IdP, but Mautic still holds the old certificate, so sign-in fails for everyone |
| IdP claim changes | Confirm that email, first name and last name are still sent in the SAML response after any IdP policy or attribute mapping change | A renamed or removed claim causes users to be created incorrectly or blocked at login |
| Role review cadence | Review the default role assigned to auto-created users and the roles mapped to IdP groups on a set schedule | Users accumulate broader permissions than their job requires because the default role was never revisited |
| User offboarding checks | Confirm that users removed or disabled in the IdP are also disabled or removed in Mautic, and that API credentials tied to them are revoked | Mautic keeps local accounts and sessions active because SSO removal does not delete the Mautic user record |
| Mautic release upgrades | Before moving to a new release, test SAML login in staging; check the supported release list and plan upgrades within support windows | Upgrades change authentication behavior or plugin compatibility, and the failure appears only after production deployment |
| Configuration and break-glass documentation | Document the SAML settings, attribute mappings, certificate locations and a named local admin account kept for emergency access | The configuration lives only in one administrator's memory, and no one can restore sign-in when the IdP is unavailable |
Questions teams ask before configuring Mautic SSO
How long does Mautic SSO configuration take?
The duration depends on how quickly the identity provider and Mautic administrators can agree on the setup, and on how many environments need the integration. The main drivers are whether the IdP already issues email, first name and last name attributes, whether a test tenant exists, how many user groups must map to Mautic roles, and whether certificates need to be issued or rotated through a change process. Teams with an existing SAML application in Entra ID and a staging Mautic instance usually move faster than teams that must build both from scratch. Ask any partner to show the duration assumptions in the written scope so you can see which drivers they have counted.
Can an internal team configure Mautic SSO alone?
Yes, a competent internal team can configure SAML single sign-on, provided it has someone who understands SAML trust settings, certificate handling and the Mautic configuration file. The work is mostly configuration and testing rather than custom code. The risk is in the edge cases: attribute mapping mistakes, default roles that are too broad for newly created users, and certificate expiry that locks out administrators. Teams without SAML experience, or without a non-production Mautic instance to test against, usually benefit from an outside review of the design before changes reach production.
What does the work need from the IdP and Mautic admins?
The identity provider administrator needs to create or configure the SAML application, release the required attributes (email, first name and last name), set the assertion and signing options, and provide the metadata or certificate details. The Mautic administrator needs access to the server configuration, the ability to restart services where required, and rights to set default roles for users created through SSO. Both teams should agree on who owns the signing certificate, its expiry date and the renewal process. Confirm these responsibilities in writing before the work starts.
Does Mautic support LDAP authentication?
No. The Mautic authentication documentation describes basic authentication for users and SAML single sign-on with an external identity provider, and it does not describe an LDAP option. Organizations that rely on directory-based login should plan for SAML through a provider such as Entra ID, or confirm with the Mautic project whether a newer release changes this. Any plan that assumes direct LDAP binding should be reviewed before procurement, because it will not match the documented capability.
Which Mautic version should a team plan for?
Plan for a version that is inside its support window for the full life of the project. The Mautic releases page lists Mautic 7.2 (Absolunto) with active and security support until 30 September 2026, Mautic 7.3 as the planned long-term support release with security support through 31 December 2027, and Mautic 6.0 (Tabit) with security support until 30 September 2026. Mautic 5.2 (Capella) has security support until 30 June 2026, and Mautic 4.4 has paid Extended Long Term Support through 31 December 2026. Confirm the current status on the releases page before you choose, since the dates may move as the project publishes new releases.
What should a fixed-scope quote for Mautic SSO include?
A fixed-scope quote should name the Mautic version and hosting environment, the identity provider and its version, the attributes and role mappings in scope, and the number of environments to configure. It should list the test plan, including a login test for each default role, a test for an unknown user, and a test for a disabled account. It should also state who owns certificate renewal, what documentation is delivered, and how rollback works if login fails. Ask which items are excluded, such as changes to the identity provider beyond the SAML application, and whether a retest is included after fixes.
What happens to a Mautic account when SSO is turned off?
Engineers should confirm this in their own test environment before production changes. Accounts created through SSO are still Mautic user records, so their access depends on the roles and status assigned to them in Mautic. If SSO is disabled, users may fall back to basic authentication only if that path is still configured and the passwords are known. Plan a break-glass administrator account with a strong password stored under your normal secrets process, and verify that it works before any change to the login flow.
How DeployOpen works on this
DeployOpen plans and implements self-hosted Mautic inside your own infrastructure, with the SAML configuration, attribute mapping and default role settings agreed before any change is made. The work is documented so your identity and security teams can review the setup and run it after handover.
How we scope
- Confirm your identity provider, whether it is Entra ID or another SAML provider, and who owns its configuration.
- Agree which user attributes the provider sends for email, first name and last name, and how each maps to Mautic users.
- Record the default role for newly created users, the admin accounts that keep local login, and the approval path for role changes.
- Set out in writing which environments, certificate tasks and testing steps are included in the fixed scope.
How we build
- Configure the SAML connection in a non-production Mautic instance first, then move the verified settings to production.
- Plan certificate issuance, storage and renewal dates so signing certificates do not expire without notice.
- Test sign-in, sign-out, new user provisioning and role assignment with named test accounts from your identity team.
- Confirm the basic authentication path still works for break-glass admin accounts and document how it is restricted.
How we hand over
- Deliver a written configuration record covering SAML settings, attribute mappings, default roles and certificate locations.
- Provide a runbook for certificate rotation, role changes, onboarding and offboarding users, and recovering admin access.
- Walk your identity and platform teams through the setup and the known limits of Mautic's built-in authentication.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers, including checks after Mautic release updates.
- Retesting of SSO settings can be repeated when your identity provider, certificates or Mautic version change.
- Ask for a quote based on the written scope, which sets the deliverables, environments and timelines before work starts.

