Zammad single sign-on with Microsoft Entra ID

Zammad single sign-on with Microsoft Entra ID lets agents sign in with their work accounts. This page covers the method choice, app registration, account linking and blocking unknown accounts.

On this page

Zammad single sign-on with Microsoft Entra ID: what the integration does

Agents who sign in to Zammad with their Microsoft work accounts, instead of a local password, need one of two login paths: Zammad's third-party login for Microsoft, or SAML. Which one fits depends on how the identity setup is built and what the team needs Zammad to do with the returned identity. In both cases the agent authenticates at Microsoft Entra ID, Entra ID returns an assertion or token to Zammad, and Zammad matches that identity to a local user record. The reference for supported login providers and their exact settings is the Zammad third-party applications documentation at Zammad third-party applications. Confirm the field names, redirect behavior and provider options there for the release you actually run, because they can change between versions.

The key point for planning is that SSO replaces only the sign-in step. Once the match is made, Zammad's own access model still applies: the user's role, group access levels, organization settings and any restrictions on administrator functions decide what the agent can see and do. A correct sign-in does not grant access to a confidential group, and a user who signs in with a valid Microsoft account can still hold few or no permissions. Decide up front which Entra ID users should be agents, which should be customers, and who gets Admin rights, then confirm that those assignments are made in Zammad rather than assumed from the identity provider.

Before you build, confirm three things with your Entra ID administrators and in the Zammad documentation: which login path your installed release supports for Microsoft, which Entra ID tenant and application type you will register, and whether agent accounts already exist locally with matching email addresses. Those answers determine the app registration, the redirect URI and how the account-matching and unknown-user settings behave in the steps that follow.

What you need before configuring Entra ID login

Entra ID login for Zammad depends on four things lining up before anyone touches a setting: a reachable Zammad instance, a tenant where agent accounts actually live, a person allowed to register applications, and an admin who can change security settings. Confirm each one first, because a mismatch in any of them shows up later as a sign-in failure that looks like a configuration bug.

A Zammad instance on HTTPS

Zammad must be running and reachable over HTTPS at the public hostname you will register as the redirect target. The hostname, the DNS record and the certificate presented to browsers must match exactly what goes into the Entra ID app registration, including scheme and any port. A test hostname that differs by one character will fail the handshake. Confirm the exact Zammad release and the settings it requires in the admin documentation before the change window, since login configuration can differ between releases.

Zammad third-party docs

The Entra ID tenant that holds agents

Confirm where your agent accounts are authoritative. Cloud-only users are created and managed directly in Microsoft Entra ID. Users synced from on-premises Active Directory arrive through Microsoft Entra Connect, so disabled or removed accounts in AD only stop signing in when the sync has run. Check that every person who should become an agent exists in the tenant with a usable email address, because Zammad links accounts by email.

A role that can register applications

Creating the app registration, its redirect URI and its client secret requires an Entra ID role with application registration rights. Identify who holds that role, whether it is a standing assignment or activated on demand, and who will record the client ID, tenant ID and secret. Plan how the secret is stored and when it expires, because a lapsed secret stops all sign-ins without changing anything in Zammad.

A named Zammad admin for security settings

Name one Zammad administrator who will enter the third-party login values and change the account creation settings during the change window. This person needs rights to edit security settings, and a second person should be able to verify the result. Agree in advance who will approve rollback if agents cannot sign in, and keep a local admin account available so that an identity problem does not lock every administrator out.

Matching agent email addresses

Zammad links an Entra ID sign-in to an existing agent by email address. Before the change, compare the email addresses in Zammad with the primary addresses in Entra ID, and resolve case differences, aliases and old domains. Accounts with no match will either be created or blocked depending on the no user creation setting, so decide that policy before go-live rather than discovering the gap from support tickets.

How the agent login flow moves between Zammad and Entra ID

The flow starts in the agent's browser, which asks Zammad for a Microsoft sign-in. Zammad redirects the browser to Microsoft Entra ID, where the agent authenticates, so the password is entered at Microsoft's identity service. Entra ID returns a signed response to Zammad through the browser. Zammad then matches the agent's email address against its local user database. A match signs the agent in, while no match is refused when user creation is off. Check that the trust boundary matches your network policy before go-live.

Agent sign-in path across the company network and Microsoft's identity service.

Microsoft third-party login or SAML: which method to choose

This method uses the Microsoft provider option that Zammad includes among its third-party login providers. The admin registers an application with Microsoft, copies the client identifier and secret into Zammad, and enables the provider in the security settings. Agents then choose a Microsoft sign-in on the login page and authenticate with their Entra ID account. The provider handles the OAuth exchange, so the admin manages fewer protocol details than with SAML.

  • Admin configuration: Client ID, client secret, tenant scope and the redirect URI copied from Zammad into the app registration.
  • What agents see: A Microsoft sign-in button next to the standard login, followed by the usual Microsoft account prompt.
  • Claims and attributes: Zammad receives a limited set of profile fields, usually the account identifier and email, which it matches against existing users.
  • Maintenance owner: The platform team owns the Zammad side, and the identity team owns the app registration and any secret rotation.
  • Confirm first: Check in the Zammad third-party documentation which Microsoft options your release exposes, such as tenant restrictions and group handling.

Confirm that this option can express every access rule your security team requires before you commit to it.

How to configure Entra ID sign-in for Zammad step by step

This sequence takes an agent from a public Zammad URL and a trusted certificate to a tested Entra ID login that links to an existing account, with unknown accounts blocked before any broader rollout.

  1. Confirm the public URL and certificate

    Before touching Entra ID, confirm the external hostname agents will use to reach Zammad, the reverse proxy that serves it, and a valid TLS certificate for that name. The redirect URI that Entra ID will call is built from this exact URL, so a mismatch between the hostname in Zammad's system settings and the hostname users browse to will cause sign-in to fail. Record the final URL in your change ticket. The step is complete when the hostname resolves, the certificate chain validates from a managed agent device, and the Zammad system URL setting matches it character for character.

  2. Register the application in Entra ID

    A directory administrator creates an app registration in the Microsoft Entra admin center for Zammad and records the tenant ID and application (client) ID. Set the redirect URI to the value Zammad displays on its third-party login configuration page, copied rather than typed, and make sure the platform type matches the web flow Zammad uses. Confirm which accounts may sign in (single tenant is the usual choice for an internal helpdesk). The step is complete when the registration exists, the redirect URI in Entra ID matches the Zammad value exactly, and the administrator has saved the tenant and client IDs for the next step.

  3. Create the client secret and record its expiry

    In the app registration, create a client secret or upload a certificate, depending on what your Zammad version and security policy support. Copy the secret value immediately, because Entra ID will not show it again. Record the expiry date in your certificate or secret inventory and assign an owner who receives renewal reminders, since an expired secret stops sign-in for every agent at once. Store the value in your approved secrets store, not in a shared document. The step is complete when the secret or certificate exists, its expiry is in your inventory with a named owner, and the value is in the secrets store.

  4. Enable the Microsoft or SAML provider in Zammad

    In Zammad's administration settings, open the third-party login section and enable the Microsoft provider, or the SAML provider if your design needs SAML attributes, group claims or a setup that the Microsoft provider does not cover. Enter the tenant ID, client ID and secret, or the SAML metadata from Entra ID, and save. Confirm the exact fields and any version-specific behavior against Zammad's documentation for your release before you save. The step is complete when the provider shows as enabled, the saved values load back without errors, and the login page offers the Microsoft option to a test browser session.

  5. Configure account linking by email

    Decide how Zammad should match an Entra ID sign-in to an existing user. Account linking by email connects the identity to a user record whose email address matches the one Entra ID returns, so existing agents keep their tickets, roles and group access. Verify that the primary email in your directory matches the address already stored in Zammad for the pilot agent, and resolve any aliases or case differences first. The step is complete when a test agent with a known Zammad account signs in through Entra ID and lands on the same user record, with no duplicate user created.

  6. Set the no user creation option

    Turn on the setting that stops Zammad from creating a new user on first Microsoft sign-in, so only accounts you have already provisioned can enter. Without it, any Entra ID user who can authenticate to the tenant may create an account, which matters when the tenant includes guests, contractors or customers. Confirm the setting name and behavior for your release in Zammad's third-party documentation. The step is complete when the setting is saved and a test sign-in with an Entra ID account that has no Zammad record is rejected with no new user created.

  7. Test with one agent account

    Sign in as one pilot agent in a private browser session, then check the user record, assigned roles, group access and the audit or login history in Zammad. Test three cases: a matched existing agent, an unknown Entra ID account that should be rejected, and a sign-in after the password or session has expired. Confirm that a failed case leaves no partial account behind. Record the results and the Zammad and Entra ID versions tested. The step is complete when the matched agent signs in with the correct roles, the unknown account is rejected, and the results are filed for the rollout review.

Which Entra ID attributes map to Zammad user fields

This table compares each identity field Zammad needs for an Entra ID sign-in with where the value comes from and who sets it. Read it before you build the app registration, so you know which claims to send and which Zammad settings an administrator must still control. The main takeaway is that the identity provider supplies the sign-in identity, while roles and group access stay in Zammad and need confirmation against your release before you promise them.

Zammad user field or settingSource in Entra IDNeeded for account linkingSet by an admin in Zammad
Login or email addressUser principal name or primary email claim, confirm the exact claim your setup sendsYes, the email must match an existing Zammad account for linking by emailCheck it matches the mailbox the agent uses
First nameGiven name claimNo, but useful for a clean profileCorrect if the claim is missing or blank
Last nameSurname claimNo, but useful for a clean profileCorrect if the claim is missing or blank
Entra object identifierObject ID of the user in the tenantNot required for email linking, confirm whether your release stores itRecord it only if your process uses it for audit or offboarding
Group membershipGroup claims, if you configure them in the app registrationNo, groups do not control account linkingAssign roles and group access by hand in Zammad unless a supported group-to-role mapping is confirmed
Roles (Admin, Agent, Customer)Not passed from Entra ID in this designNoSet in Zammad, and confirm any Entra group mapping option in your release before promising it
Account activation and statusAccount enabled state in Entra IDNo, but a disabled Entra user should not keep Zammad accessDeactivate the Zammad account when the agent leaves, and confirm how your setup handles disabled users

How account linking by email and blocking unknown accounts work

The most important thing to plan before enabling Microsoft sign-in is how Zammad matches an Entra ID login to a user record. In the setup described here, Zammad links a successful Microsoft sign-in to an existing local user when the email address matches, so an agent who already exists from a bulk import or an earlier password login will be attached to that record rather than receiving a new one. This is convenient, but it means the email address is the identity key. Every agent record in Zammad should therefore carry the exact primary mailbox that the person uses in Entra ID, and the matching behavior should be confirmed in the admin documentation for your Zammad version before you rely on it.

The risk is that a mismatched or duplicated email can attach a login to the wrong account. Shared mailboxes, typos in imported CSV files, a former employee's address reassigned to a new hire, or two records for the same person can all send a sign-in to a record with more or fewer permissions than intended. Role and group assignments then follow the wrong person. Review the agent list for duplicate and shared addresses before go-live, and make sure no account is left with an address that someone else can receive mail on. Changes in the Entra ID tenant, such as renamed or aliased addresses, should be planned as account changes in Zammad too.

The no user creation setting is the control that stops first-time Microsoft sign-ins from creating new users. Enable it so that only people who already have an account in Zammad can get in, and create agent accounts in advance through a controlled process such as an approved import list tied to HR or the identity team's joiner records. Treat new agent creation as a change with an owner and a record. Before production, test the full behavior in a test Entra ID tenant: an existing agent, an unknown user, a user whose address differs only in case, and a removed user. Confirm the exact result of each case in the admin documentation and in your test results, not from memory.

Security settings that protect Entra ID sign-in

Entra ID sign-in is only as strong as the settings around the Zammad application. The controls below cover who can reach the app, how the secret and break-glass access are handled, how new accounts are created, and how changes are recorded. Broader Zammad hardening tasks are covered on the security hardening page.

Keep the client secret controlled

The Entra app registration uses a client secret that Zammad stores in its SSO settings. Keep the value out of shared documents, tickets and chat, and store it in your approved secrets store. Set a rotation date before the secret expires and record the owner, so an expired secret does not lock every agent out of Zammad at once.

Zammad requirements

Restrict the app to the agent group

In Entra ID, require user assignment on the enterprise application and assign only the security group that holds Zammad agents. Users outside that group cannot start the sign-in flow, even if they have a Microsoft account in your tenant. Review group membership when agents leave or change teams.

Decide on local break-glass login

Decide whether local password login stays enabled for Zammad while SSO is in use. If it stays on, name a small set of administrators who hold those credentials, store them in a sealed location, and test them on a schedule. If it is turned off, confirm first how an administrator recovers access when the identity provider is unavailable.

Enforce MFA with Conditional Access

Apply a Microsoft Entra Conditional Access policy to the Zammad application that requires multi-factor authentication for agents. Scope the policy to this app and the agent group so the rule is visible in one place. Confirm that the policy applies to the sign-in path agents actually use, including the browser and API clients your team relies on.

Block unknown account creation

Turn on the no user creation setting for Entra sign-in so that a valid Microsoft account cannot create a Zammad user on first login. Accounts should be created by an administrator or a controlled import, and the agent role should be set deliberately. Test with a user outside the agent group to confirm that the login is refused.

Log changes to SSO settings

Record who changed the Microsoft third-party login settings, the redirect URI, the client ID or the account linking behavior, and when. Keep a change record for the Entra app registration as well, including secret rotations and assignment changes. Review these logs after each change window so an unexpected edit is noticed quickly.

Common Entra ID sign-in failures in Zammad and how to fix them

This table lists the sign-in failures most often seen when agents log into Zammad with Microsoft Entra ID, with the likely cause and a check the admin can run for each. Work down the rows in order, since a redirect or hostname mismatch blocks every other test. Exact error text varies by Zammad release, so confirm each message in the Zammad and reverse proxy logs before acting on it.

FailureLikely causeCheck and fix
Redirect URI mismatchThe redirect URI registered in the Entra app does not match the callback URL Zammad sends, often because of a different scheme, port or pathCompare the redirect URI in the app registration's Authentication blade with the callback shown in Zammad's third-party settings, character for character, including https and any trailing slash
Hostname or certificate does not matchZammad is reached through a hostname that differs from the one configured as the system URL, or the TLS certificate does not cover that nameConfirm the FQDN in Zammad's system settings matches the public hostname users type, and check the certificate chain for that name in a browser or with an openssl connection test
Email differs between Entra and ZammadThe UPN or mail attribute returned by Entra differs from the email on the existing Zammad user, so account linking does not find a matchCompare the email claim in the sign-in token with the Zammad user's email address, then correct the user record or the Entra attribute so both match exactly, including letter case
User missing when no user creation is onThe no user creation option blocks sign-in for accounts that were never created in ZammadConfirm the agent exists in Zammad with the correct role and email before testing, or temporarily allow creation in a test environment to verify the flow
Expired client secretThe client secret in Zammad's Microsoft settings has passed its expiry date in the Entra app registrationCheck the expiry date under Certificates and secrets in the app registration, create a new secret, update it in Zammad and record the renewal date in your calendar
Agent not assigned to the Entra applicationThe user or group is not assigned to the enterprise application when assignment is requiredIn Enterprise applications, check the user and group assignments and the setting that requires assignment, then assign the agent group and retest with a fresh browser session

Questions teams ask before setting up Entra ID sign-in for Zammad

Can our team set up Microsoft Entra ID sign-in for Zammad alone?

Yes, if one or two engineers have administrative access to the Entra ID tenant, can administer the Zammad server, and understand how OAuth or SAML applications and redirect URIs work. The work is mostly configuration rather than code, but it touches identity, so a mistake can lock agents out or let the wrong accounts in. Plan for someone to own the Zammad side (settings, account handling, the no user creation option) and someone to own the tenant side (app registration, secrets, Conditional Access). Teams without recent Entra ID experience often use a partner for the first setup and then keep the configuration documented for their own staff. DeployOpen can plan and implement this as a fixed-scope piece of work with written deliverables.

What makes Entra ID sign-in for Zammad take more effort?

The main drivers are the number of agent accounts, the state of existing accounts, the method you choose, and how much testing you need. Agents who already exist in Zammad with local passwords need their email addresses checked so account linking matches the right person and no duplicates appear. Choosing between Microsoft third-party login and SAML changes the app registration, the claims and the admin steps. A Conditional Access policy that requires multifactor authentication or limits locations adds rules to test. Each role (admin, agent, read-only or reporting users) should sign in once before go-live, because group and role mapping problems usually show up only for specific users.

How long does Entra ID sign-in for Zammad take to set up?

No duration is fixed in the supplied material, so the honest answer depends on your environment. The elapsed time is shorter when a test tenant exists, the public hostname and certificate are already in place, and the agent list is clean. It is longer when the team must create a test tenant, clean up duplicate accounts, agree on who gets admin rights, or wait for change approvals. Ask any provider for a written schedule tied to the agreed scope, and ask which of these prerequisites they expect you to complete before work starts.

What must our organization provide before the Entra ID setup starts?

You need four things. First, tenant administrator access, or a named administrator who will create the app registration and grant consent. Second, the public hostname that agents will use to reach Zammad, because the redirect URI must match it exactly, including the protocol and path. Third, an agent list with work email addresses, names and intended roles, so you can confirm who should exist in Zammad and who should be blocked. Fourth, a test plan that lists the accounts and roles to sign in, the expected result for each, and a rollback plan. Confirm with your administrators which of these they can provide within your change process.

Do we need extra Microsoft licensing to use Entra ID sign-in with Zammad?

Confirm this with Microsoft and your tenant licensing before you commit. Basic sign-in with an app registration and the features used here may work under the licenses you already hold, but some related features, such as Conditional Access policies, group-based assignment or identity protection, depend on the Entra ID edition your tenant has. Ask your Microsoft account team or licensing contact which edition covers the Conditional Access rules and any group-based access you plan to use. Record the answer in the project scope so procurement and the security team review the same assumption.

What changes for our team after Entra ID sign-in goes live?

Several tasks recur after go-live. Client secrets or certificates used by the app registration expire and must be rotated before the expiry date, so record that date and assign an owner. New agents must exist in Entra ID and be assigned the right roles in Zammad, and leavers must be disabled in Entra ID so their Zammad access ends with their directory account. Review Conditional Access changes after tenant policy updates, and retest sign-in after each Zammad upgrade, since login settings can be affected. Document these steps in your operations runbook and assign them to named staff.

How DeployOpen scopes and delivers Zammad single sign-on

DeployOpen plans Zammad single sign-on with Microsoft Entra ID as a written, fixed-scope piece of work inside your own infrastructure. We agree on the sign-in model, the app registration, account linking and the unknown-account policy before anything is changed, then test and document the result for your identity and security teams.

How we scope

  • Confirm whether your agents need Microsoft third-party login or SAML, and record the reason for that choice.
  • Inventory the Entra ID tenant, app registration ownership, redirect URI and Zammad hostname that the sign-in will use.
  • Agree in writing how agent accounts will be linked by email and how unknown accounts will be blocked.

How we build

  • Register the Zammad application in your Entra ID tenant and configure the redirect URI to match your Zammad hostname exactly.
  • Configure the chosen provider in Zammad, with the no user creation setting enabled for agent sign-in.
  • Test sign-in with a pilot group of agents, a new unknown account and a linked existing account before rollout.

How we hand over

  • Deliver a written runbook covering app registration settings, client secret ownership and renewal, and the configuration keys used.
  • Document the account linking behavior and the steps an administrator follows to onboard a new agent.
  • Walk your identity and Zammad administrators through the tests, the rollback path and the known limits of the setup.

How we support

  • Retest sign-in after Zammad upgrades, Entra ID tenant changes or changes to the Zammad hostname.
  • Provide ongoing support, upgrades and continuous testing as a retainer if your team wants them after handover.
  • Review the setup again when you change agent roles or add directory groups, so access stays aligned with your policy.

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.