Zammad SSO with SAML and OpenID Connect

Zammad supports third-party login through SAML, OpenID Connect and Microsoft, among other providers. This page covers the decisions, build sequence, effort and verification for agent and customer login in a self-hosted deployment.

On this page

How Zammad SSO with SAML and OpenID Connect changes agent and customer login

Zammad supports third-party login through SAML, OpenID Connect and Microsoft, among other providers, so the real question for your team is which identity decisions must be settled before anyone signs in. The Zammad side of the work is mostly configuration of the provider connection. The harder part is deciding how your identity provider (IdP) describes each person, which Zammad role that person should receive, and what happens to accounts that already exist. Teams that treat this as a settings screen usually discover the gaps after agents and customers have started logging in, when a mapped attribute is missing, a customer lands with agent rights, or a duplicate account splits a ticket history in two. Plan these decisions in writing before the configuration starts, and confirm the supported options for your Zammad version in the Zammad third-party applications documentation.

The identity questions fall into a few groups. The first is attribute mapping: which claims or SAML assertions carry the email address, name and identifier that Zammad uses to match a login to a user record, and whether your IdP sends them consistently for every population. The second is role mapping, where agents and customers must be separated so that an external customer account can never inherit agent permissions through a group or claim. The third is account linking. If users already exist as local Zammad accounts, decide whether SSO should attach to those accounts by email or create new ones, and who approves that merge. A recovery path also belongs in the plan: keep at least one local administrator account that works if the IdP, its certificates or its network route fail, and test that path before you enforce SSO. Confirm with your Zammad administrators how these settings interact with the provider you choose, because the outcome depends as much on your IdP's configuration as on Zammad.

Teams usually need this work when Zammad holds regulated customer data, when joiner, mover and leaver processes already run centrally and must also remove helpdesk access, or when multi-factor authentication is enforced at the IdP and must cover Zammad logins too. In those settings, an unmanaged local password becomes an audit finding, and a departed employee who still holds an active helpdesk account becomes a real exposure. Ask your IdP team to confirm which groups, claims and deprovisioning events they can supply, and ask your Zammad owner to confirm how role changes take effect at the next login. Treat the result as a shared control between identity and support operations, with named owners on both sides.

Which Zammad and identity components are involved

Zammad login through SAML, OpenID Connect or Microsoft accounts depends on several components working together, and a fault in any one of them looks like a failed sign-in. Each card below describes what a component does for login and what to confirm before you configure it.

Identity provider

The identity provider (IdP) authenticates users and issues the SAML assertion or OpenID Connect token that Zammad trusts. It decides who can sign in, which groups or claims are passed along, and whether multi-factor authentication applies. Confirm which protocol your IdP supports, which attributes it can send for email, name and group membership, and who owns changes to its application registration.

Third-party login docs

Zammad third-party login settings

Zammad stores the SAML or OpenID Connect configuration in its admin settings, including the identity provider endpoints, client credentials and attribute mapping. These settings control whether a new login creates a user and which role or group it lands in. Confirm the exact setting names and the supported provider options for your release in the Zammad admin documentation before you copy any value from a tutorial.

Reverse proxy and callback URL

The reverse proxy terminates TLS in front of Zammad and passes the original host and protocol to the application. The identity provider redirects users back to a callback URL built from the external hostname, so a mismatch in scheme, host or port causes the login to fail after the user authenticates. Check that the proxy forwards the headers Zammad expects and that the registered redirect URI matches the public address exactly.

PostgreSQL user and role store

PostgreSQL holds the user records, organizations, roles and group memberships that Zammad uses after a successful sign-in. Provisioned accounts and role assignments persist here, so backups and restores of the database determine which users and permissions exist after recovery. Zammad requires PostgreSQL 15 or newer, so confirm the version and plan how identity-driven role changes are audited.

Software requirements

Redis for realtime sessions

Redis supports the realtime websocket connection that keeps agent sessions live after sign-in. If Redis is unavailable, users may sign in successfully but see stale or missing updates, which can look like an SSO fault during testing. Zammad requires Redis 7 or newer, so confirm the version and include Redis in login testing rather than assuming it is only a performance component.

Shared cache for multi-instance deployments

When several Zammad instances or cluster nodes serve the same users, session and cache state must be shared, otherwise a login handled by one node may not be recognized by another. The software requirements call for Memcached in multi-instance setups, while single installations can use the file system cache. Confirm your topology before testing SSO across nodes and check that a sign-in survives a node restart.

Software requirements

The callback URL is where Zammad SSO most often breaks

The diagram starts with a user's browser sending a login request through the reverse proxy to Zammad, which redirects the browser to the identity provider. The identity provider returns a SAML assertion or OpenID Connect token to the callback URL on the company's Zammad hostname. Zammad then maps attributes and groups to roles, creates or updates the user in PostgreSQL, and sets a session cookie. Check that the callback URL, the external hostname and the proxy forwarding headers all match what is registered with the identity provider, since a mismatch at this step is the most common cause of failed logins.

Login flow from browser to identity provider and back into Zammad.

Which Zammad SSO method fits your identity provider

This table compares SAML, OpenID Connect and the Microsoft login option across fit, ongoing operational work and team skills. Read each row against the identity provider you already run, then confirm supported features with your provider and the Zammad documentation before choosing. The main takeaway is that the protocol matters less than who will rotate certificates, secrets and redirect URIs after go-live.

OptionWhen it fitsOperational cost to you
SAMLYour identity provider issues SAML assertions and your security team already manages SAML applicationsCertificate and IdP metadata rotation must be tracked and applied in Zammad before expiry, or agents lose login
OpenID ConnectYour provider supports OIDC clients and your team can manage client registrations and scopesClient secret rotation and exact redirect URI matching for each Zammad hostname must be maintained after any URL change
Microsoft accountsYour organization runs Microsoft Entra ID and users sign in with Microsoft identitiesDepends on a single Microsoft tenant, so tenant changes, app registration changes or policy changes affect logins directly
Team support skillsThe team has run the chosen protocol before and can read provider logsUnfamiliar protocols lengthen troubleshooting; confirm who on your side can diagnose a failed login at short notice
Customer loginsCustomers may need a different login path from agents, such as social or self-registrationConfirm whether your chosen method covers customers, or whether customers need separate authentication settings
Attribute and role mappingYour provider can send group or role claims that map cleanly to Zammad rolesMissing or renamed claims cause wrong role assignment; test mappings with a non-production account first
Break-glass local accountsKeep at least one local administrator account for recovery if the identity provider is unavailableA local account needs its own strong password, two-factor policy and a documented owner who reviews it regularly

Zammad SSO build sequence from metadata to role mapping

This sequence takes Zammad from a working HTTPS hostname to a tested single sign-on setup in which identity provider groups decide who gets agent, customer or admin access, with a documented fallback for the first admin.

  1. Confirm release and HTTPS hostname

    Before touching the identity provider, confirm the Zammad version you run and the public hostname users will reach, served over HTTPS at the reverse proxy (Nginx or Apache). Record the exact external URL, because the identity provider callback and the Zammad system URL must match it character for character. Check that the platform is current on its release line, since security fixes are published separately for each supported line. Done means the hostname loads with a valid certificate and the Zammad system URL in the admin settings equals that address.

  2. Register Zammad in the identity provider

    The identity administrator creates an application for Zammad in the chosen provider, whether SAML, OpenID Connect or a Microsoft account registration. Set the callback or assertion consumer URL to the Zammad path for the chosen protocol, using the hostname confirmed in the previous step. Confirm the provider's exact callback format in the Zammad third-party documentation and in the provider's own guide, since small path differences cause failed logins. Done means the application exists in the provider with the correct redirect target and no unexpected wildcard addresses.

  3. Exchange metadata and store secrets

    Exchange the metadata or client credentials between the two systems. For SAML, share the identity provider metadata and agree on the attributes and signing certificate. For OpenID Connect, obtain the client ID, client secret and discovery endpoint. Place the client secret and certificates in the team's secret manager, not in tickets, chat or shared documents, and restrict who can read them. Rotate any secret that was pasted into an unsecured channel during testing. Done means the values are stored, access is limited to named administrators, and the Zammad settings reference them without exposing them to other admins.

  4. Enable the provider in third-party settings

    In Zammad's administration settings, under the third-party application options, enable the chosen provider and enter the metadata or credentials from the previous step. Keep password login active for the moment so the recovery path stays open during testing. Save the configuration and check the provider's own sign-in page. Done means a test login as a known user completes the redirect round trip and returns to Zammad, and the account appears in the user list with the expected identity link.

  5. Map attributes and groups to roles

    Decide which identity provider attributes or groups map to Zammad roles (agent, admin, customer) and to groups (for example, support tiers or regions). Create the mapping in a written table first, then configure it in Zammad and in the provider's claims or assertion settings. Keep customers separate from agents, because the wrong default role can grant internal access. Done means a test account in each mapped group lands with the expected role and group, and a test account with no mapped group is either denied or created as a customer, according to the decision recorded in the table.

  6. Test with a pilot group

    Run a pilot with a small set of real agents and a few customer test accounts before enabling single sign-on for everyone. Test first login, returning login, password or MFA prompts at the provider, role changes after the user's group changes, and deprovisioning when a user leaves the group. Include negative cases: an unassigned user should be rejected, and an expired or disabled account should not retain access. Record each result. Done means every test case has a written pass or a logged defect, and the mapping has been corrected and retested where needed.

  7. Document the recovery admin path

    Before disabling password login or making single sign-on mandatory, document how an administrator regains access if the identity provider, certificate or secret fails. Name at least two local administrators, store their credentials in the secret manager, and write the steps to re-enable password login in a runbook. Confirm who may approve use of the recovery path and how its use is logged. Done means the runbook has been walked through once in a test environment or with a test account, and the named recovery administrators confirm they can sign in.

What drives SSO effort and how to keep each part down

This table lists the factors that raise the effort of a Zammad SSO project and the steps that keep each one contained. Read each row as a decision point, since most of the effort comes from a few choices made before configuration starts. The largest variable is usually the identity administration skill of your own team, which is often underestimated.

DriverWhy it raises effortHow to keep it down
Number of identity providers and tenantsEach IdP or tenant needs its own SAML or OpenID Connect settings, certificates, redirect URIs and attribute testing, and each adds a separate failure path.Standardize on one IdP for staff where possible and confirm early whether separate tenants are truly required.
Agent and customer groups needing distinct rolesEvery group that must map to a different Zammad role or group assignment adds mapping rules and test cases.Define a short list of roles and groups in writing before configuration, and map only what access decisions require.
Claim and attribute quality in the directoryMissing, inconsistent or multi-valued claims such as email, name or group membership force custom mapping and manual cleanup.Audit the claims your IdP sends for a sample of real users, and fix attribute sources before building mappings.
Customers logging in through the same IdP as staffCustomers are usually not in the staff directory, so sharing an IdP raises questions about provisioning, default roles and account separation.Decide early whether customer login uses SSO at all, or whether customers use a separate flow or local accounts.
Multiple Zammad environments (test, production, disaster recovery)Each environment needs its own redirect URIs, client registrations or certificates, and its own verification after every change.Script or document the configuration so it can be repeated, and keep environment-specific values in a controlled list.
Compliance evidence for access controlAssessors typically ask for documented provisioning and deprovisioning, role assignment records and proof that access reviews happened, which adds documentation and testing work.Agree the evidence list with your compliance team first, then design logging, review steps and screenshots around it.
Custom provisioning and deprovisioning rulesRules for auto-creating users, updating roles on login or removing access when someone leaves all need design, testing and ownership.Limit automatic provisioning to what is required, and confirm with the vendor which account lifecycle behaviors your version supports.
Team identity administration skillsIdentity provider configuration, certificate handling, claim troubleshooting and directory hygiene are specialist tasks, and gaps in these skills often extend the schedule more than the platform itself.Assess who on your team owns the IdP and certificates, and plan knowledge transfer or external help for the gaps before starting.

How SSO setup differs by deployment model

A single Zammad installation on one host is the simplest case for SSO. The application, reverse proxy and database usually sit on the same host or a small set of hosts, so there is one public hostname that the identity provider must call back to. Sessions are held in one application instance, so a sign-in completed in one place is valid everywhere that instance serves.

  • Callback URL: Register the exact public FQDN and scheme that users reach, including the path Zammad expects for the provider. A mismatch between http and https or between the hostname and the configured system URL is the most common failure.
  • Certificates: Install the TLS certificate at the reverse proxy and confirm the identity provider can reach it. For SAML, record the signing certificate that Zammad must trust and plan its renewal date.
  • Sessions: Session state stays with the single instance, so a restart or upgrade signs users out. Tell agents to expect this during change windows.
  • Ownership: The internal team usually owns the change, since the setup touches only the Zammad host and the identity provider tenant.

Confirm the exact provider settings and attribute names against the Zammad third-party applications documentation before changing production.

Securing Zammad login and the secrets behind it

Single sign-on moves the trust decision to your identity provider, but it also creates new secrets, callbacks and admin paths inside Zammad. The cards below cover the controls to verify before go-live and after every change to login settings.

Protect signing and client secrets

The SAML signing and encryption certificates and the OpenID Connect client secret let Zammad trust assertions and tokens from your identity provider. Store them in your secrets manager, not in configuration files or tickets, and limit read access to the few administrators who maintain the integration. Record who holds each secret and the date it was last rotated. Confirm that rotation is tested in a non-production instance first, because a rotated certificate that Zammad does not yet trust will lock out every agent and customer at once.

Enforce TLS at the reverse proxy

SAML assertions and OpenID Connect redirect callbacks travel through the browser and the reverse proxy in front of Zammad. Zammad supports Nginx or Apache for this role, so terminate TLS there, redirect plain HTTP, and set the public hostname that Zammad uses to build callback URLs to the same HTTPS address your identity provider has registered. Check that no path serves the login endpoints over HTTP and that the certificate chain is complete, since mismatched callback URLs are a common cause of failed sign-in.

Software requirements

Restrict who changes login settings

Third-party login settings decide which identity provider is trusted and which attributes are accepted at sign-in. Limit changes to a named group of administrators, and make the identity provider's own application assignment the first gate so that only approved users can authenticate at all. Review the list of administrators with access to these settings each quarter. Ask for a change record that names the person, the time and the reason for every edit to a provider configuration.

Map roles as least privilege

Role mapping decides whether a user from the identity provider becomes an agent, an administrator or a plain customer. Map only the groups that the support process needs, and do not grant administrator rights through a broad group such as all staff. Decide in advance how an identity that matches no group is handled, and whether a removed account in the identity provider is deactivated in Zammad. Test each mapping with one account per role before opening access to the whole organization.

Keep a break-glass admin account

A local administrator account lets your team recover Zammad if the identity provider, certificate or proxy fails. Give it a long unique password, a second factor held by a different person than the usual administrators, and a documented procedure for when it may be used. Keep it out of daily use, and test that you can sign in with it during a planned exercise. Confirm the account is also covered by your password and two-factor policy in Zammad, not exempt from it.

Log authentication and role changes

Review depends on evidence. Confirm that Zammad records sign-in events and changes to users, roles and third-party settings, and that these records are forwarded to a log store your security team controls. Also check the identity provider's sign-in logs for the same period, so failed callbacks and unexpected role grants can be compared across both systems. Ask your implementation partner or Zammad which events are logged in your installed version before you rely on them for an investigation.

What to monitor, back up and document after SSO goes live

Once SSO is live, the first operational job is watching the login path itself. Review failed logins and callback errors from the Zammad side and from the identity provider side, because a broken SAML assertion or OpenID Connect redirect often shows up first as a spike of users who cannot sign in, not as an alert. Track the expiry dates of every SAML signing certificate, OpenID Connect client secret and any metadata URL, and give each one a named owner and a renewal reminder well before it lapses. Confirm with your identity provider how it notifies administrators before a certificate rotates, since an expired signing certificate can lock out all agents and customers at once. Keep a break-glass local administrator account with a strong password and a tested sign-in path, and confirm who may use it.

Back up the SSO configuration alongside the PostgreSQL database, not only the database. The provider settings, the attribute mapping and the role mapping definitions are the parts most often lost during a rebuild, and restoring data without them leaves users unable to sign in or landing in the wrong group. Retest SSO after every Zammad minor or security release, in a staging instance first. The Zammad releases page shows that fixes arrive on more than one line: the 7.2 minor release was followed by security releases on the 7.2 line, and a security release for the 6.5 line was published in parallel. If you run a supported line that receives a fix, the login path should be part of the regression checklist for that upgrade.

Document the setup for auditors and for the next administrator. Keep the identity provider application settings (redirect URIs, entity IDs, claim and attribute release, signing algorithm, session lifetime), the attribute map from identity provider claims to Zammad user fields, and the role mapping table that turns groups into agent and customer roles. Name who approves any change to role mapping, and record the approval in the change system, since a single group change can grant agent access to tickets it should not see. Write a recovery procedure covering how to restore the configuration from backup, how to reach the break-glass account, and who to call at the identity provider. Ask your team and any implementation partner to walk through that procedure once before go-live.

Questions buyers ask before setting up Zammad SSO

How much effort does Zammad SSO take to set up?

The effort depends on how many identity providers you connect, how cleanly your directory defines users and groups, and how much role mapping you need. A single SAML or OpenID Connect connection to an identity provider your team already runs is usually a contained task. Effort rises when attributes are inconsistent across sources, when agents and customers need different login paths, when group-to-role rules are complex, or when you must test with a realistic user population before cutover. Ask any partner to base its quote on a written list of identity providers, user populations, groups and roles, and test cases. Confirm the exact configuration screens and options against the Zammad third-party applications documentation for your release.

Can our own team set up Zammad SSO without a partner?

Yes, if your team owns the identity provider and has someone comfortable with Zammad administration. The identity provider side needs application registration, certificate or client secret handling, and control over claims or groups. The Zammad side needs provider settings, role assignment and testing. Gaps usually appear in three places: nobody has tested a full login with a non-admin account, group claims are not sent the way the mapping expects, and the recovery path for a failed login is undocumented. A partner can fill these gaps through a fixed-scope review, but your team can also do this work internally if it writes the test cases first.

What does DeployOpen need from our organization for an SSO engagement?

Most of the work depends on inputs only your organization can provide. You need administrative access to the identity provider, or a named administrator who will make changes during the work. You need agreed definitions of the attributes Zammad will read, such as email, name and group membership, and which groups map to agent roles, customer access or admin rights. You need a test population of real accounts across departments, including at least one account per role, plus someone who signs off on the role mapping before it reaches production. Without that sign-off, role decisions tend to be made under deadline pressure after go-live.

Should we use SAML or OpenID Connect for Zammad?

It depends mainly on your identity provider and on the skills your team already has. Zammad supports both SAML and OpenID Connect, so the practical question is which one your identity provider supports well for this application, and which one your administrators can operate and troubleshoot. If your provider offers a mature setup for one protocol and your team has run it before, choose that one. Check how each option delivers group or role claims in your environment, because role mapping is often the harder part. Confirm supported options with your provider and the Zammad third-party applications documentation before deciding.

Do Microsoft accounts remove the need for SAML or OpenID Connect work?

Not necessarily. Zammad lists Microsoft among its supported third-party login providers, which can simplify login for organizations that already use Microsoft accounts. However, the provider list does not tell you how your directory groups, guest accounts, conditional access rules or customer identities will map to Zammad roles. Those decisions still need to be designed and tested. Treat a Microsoft login option as one identity path to evaluate against your actual tenant setup, and confirm in the Zammad documentation how account linking, provisioning and role assignment behave for your release.

What happens if our identity provider goes down?

Users who depend on external login cannot sign in while the provider is unavailable, so a helpdesk can stop accepting work from its own agents. Plan a recovery administrator path before go-live. This usually means keeping at least one local administrator account that is tested, protected with strong authentication and documented in your runbook, and confirming that it still works after SSO is enabled. Decide who may use it, how its credentials are stored, and how access is logged and reviewed. Confirm the local login behavior for your release in the Zammad admin documentation before you rely on it.

How to test Zammad SSO and confirm it fails safely

Test Zammad SSO against a written script before any user depends on it, and treat the failure cases as seriously as the successful login. Start with a pilot group of a few agents and a few customer accounts drawn from the identity provider (IdP), including at least one user who is deliberately not assigned to the Zammad application in the IdP. For each agent and customer, confirm that login through SAML or OpenID Connect succeeds, that the account is created or matched with the expected email address, and that the role and group assignments match the mapping you designed. Test one agent whose group membership changes in the IdP and confirm the change is reflected in Zammad on the next login. Expect a user who is not assigned in the IdP to be refused, and confirm that no local Zammad account is created as a side effect.

Next, test the failure paths that a security reviewer will ask about. Replace or expire the signing certificate or client secret in a non-production copy, and record what Zammad shows the user and what it writes to its logs. Then block the IdP metadata or token endpoint from the Zammad host and attempt a login, so you can see whether the failure is a clear error page or a silent loop. Confirm that local break-glass login works only for the named administrators, and that a standard agent or customer cannot reach the local password form by any route. Finally, verify that changes made during these tests are reverted and that test accounts are disabled afterward.

Keep the evidence in a single folder for the security review: the signed-off test script with results, screenshots of each outcome, log excerpts with timestamps and an exported copy of the SSO configuration with secrets removed. Confirm the exact error text, redirect behavior and log entries in your own Zammad release, since these can change between versions, and note the release you tested. Record who approved the test and the IdP settings used, so the evidence can be repeated after an upgrade or certificate rotation. Run the same script again after each of those events.

How DeployOpen scopes, builds, hands over and supports Zammad SSO

DeployOpen treats Zammad SSO as a identity integration inside your own infrastructure, not a generic login toggle. We agree the identity provider, protocol, role mapping and test cases in writing, build the integration in your environment, and hand over documentation your identity and security teams can review.

How we scope

  • Confirm which identity provider you run and whether SAML, OpenID Connect or Microsoft sign-in fits your agent and customer populations
  • Map which Zammad roles, groups and organizations each identity group should receive, and who approves changes
  • Agree the written scope, deliverables and timeline before work starts, since most engagements are fixed-scope

How we build

  • Configure the chosen third-party login in your Zammad instance, with redirect URLs and certificates matched to your public hostname
  • Set up user provisioning and role mapping so agents and customers land in the correct groups at first sign-in
  • Test failed logins, expired certificates, missing attributes and fallback admin access before anything reaches production

How we hand over

  • Document the identity provider settings, claim or attribute mappings, and the reasons behind each role decision
  • Provide a runbook for rotating signing certificates and client secrets, with the steps your team owns after go-live
  • Walk your identity and security staff through the configuration and the test evidence they can review

How we support

  • Retest SSO after Zammad minor and security releases, since login behavior can change between versions
  • Review identity provider changes, such as new claims or tenant updates, before they break agent or customer access
  • Ongoing support, upgrades and continuous testing are available as a retainer, with scope agreed in writing

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.