Enforcing two-factor authentication in Zammad for agents and admins
Two-factor authentication changes one thing in a self-hosted Zammad: a stolen or guessed password no longer opens an agent or admin account on its own. That matters most for two groups. Agents can read and answer customer tickets, which often hold personal data, and admins can change roles, integrations and system settings for the whole helpdesk. A team should plan 2FA for these roles before go-live if the helpdesk holds regulated or sensitive customer data, or if one compromised agent could reach the full ticket history. Customers using the portal are a separate decision and usually need a different rollout.
Before writing a policy, confirm in the admin documentation for your exact Zammad version which second factors are offered, such as authenticator apps, security keys and recovery codes, and whether enforcement can be scoped by role or applies to all accounts at once. Test each option on a staging copy with a dedicated test agent and a test admin. Check what a user sees at first login, how long setup takes, and what happens when a device is lost. Those results decide whether you enforce for agents and admins together or in stages, and they feed the recovery and reset steps covered in the sections below.
The rollout also depends on how each group signs in. Accounts with local Zammad passwords rely on Zammad's own second factor. Accounts that sign in through SAML or OpenID Connect usually authenticate at the identity provider, which may already enforce its own second factor, so a second prompt inside Zammad can duplicate it or be skipped. Confirm how Zammad's 2FA behaves for externally authenticated users in your version, and review the third-party login options your team plans to use. Before choosing a policy, list every agent and admin account with its login method, and document which identity provider controls the second factor for each group.
Security keys, authenticator apps or recovery codes: which factor fits which role
Hardware security keys are the strongest option of the three because the login is bound to the site the user is actually on. A key will not complete a sign-in on a look-alike domain, so a credential phishing page gains nothing from a stolen password and a captured code. That property matters most for administrators, who can change integrations, export data and manage other accounts. The trade-offs are cost and logistics: keys must be bought, shipped and tracked, and a lost key usually needs an admin reset before the user can log in again.
- Phishing resistance: Keys verify the origin of each sign-in, so they are the only option here that resists real-time phishing of the second factor.
- Lost-device risk: Losing one key is manageable if the team issues two keys per admin and registers both, but a single key with no backup leaves the user locked out.
- Cost to issue: Each key is a one-time hardware purchase, and the team pays for replacements, shipping and inventory records.
- Support load: Low day to day, but each replacement goes through an admin reset, so plan that workflow before rollout.
- Likely users: Administrators and anyone with rights to change roles, authentication settings or API tokens.
Confirm in the current Zammad admin documentation which security key methods are supported in your release and how multiple keys are registered per account.
Time-based one-time password apps on a phone or desktop are the practical default for frontline agents. They cost nothing to issue beyond the time to enroll, they work on devices agents already carry, and they protect against password reuse and most credential stuffing. They do not resist phishing in the way keys do, because a user can type a valid code into a fake page within the validity window. For a helpdesk where agents handle customer data but rarely change system settings, that residual risk is usually acceptable when paired with a strong password policy and session limits.
- Phishing resistance: Moderate. A code can be relayed to a fake login page in time, so pair apps with strong passwords and short sessions.
- Lost-device risk: Higher than keys if agents use personal phones, so recovery codes and an admin reset path must be ready.
- Cost to issue: Effectively zero in licensing, but the team pays for enrollment time and help desk contacts during rollout.
- Support load: Moderate, mostly for phone replacements and clock or app problems that prevent code acceptance.
- Likely users: Frontline agents and supervisors who sign in from office or home workstations every day.
Check in the Zammad admin documentation which authenticator apps and time settings are supported and how an admin resets an enrollment.
Recovery codes are single-use fallback values generated when a user sets up a second factor. They are not a second factor for daily use, and they should be stored like a password manager secret rather than in a shared document. Their main job is to let a user regain access after losing a phone or key without waiting for an admin. The risk is that a printed or emailed code can be stolen as easily as a password, so the team should treat them as sensitive and avoid making them the normal way in.
- Phishing resistance: Low on their own, since a typed code can be phished like any other one-time value.
- Lost-device risk: Low when codes are stored safely, high if they sit in an unprotected file or inbox.
- Cost to issue: No hardware cost. The cost is user training and storage guidance.
- Support load: Low if users keep their codes, but high when the team must reset accounts for users who did not.
- Likely users: Every role as a backup, and especially agents without a dedicated device for their factor.
Confirm in the current Zammad admin documentation how many recovery codes are issued, whether they can be regenerated by the user or an admin, and whether used codes are logged.
A single factor type rarely fits everyone. A common pattern is to require security keys for administrators and anyone with API or SSO configuration rights, use authenticator apps for agents, and require recovery codes for all users as a fallback. This ties the strongest control to the accounts with the largest blast radius and keeps the cost of hardware limited to a small group. Customer-facing accounts are not part of this decision, because customers sign in through the portal rather than the agent interface.
- Administrators: Keys, with a second key registered as backup, and recovery codes stored in a vault.
- Agent supervisors and group leads: Authenticator apps at minimum, with keys if they hold role or permission changes.
- Frontline agents: Authenticator apps and recovery codes, since they are the largest group and need the lowest support burden.
- Shared or service identities: Avoid shared accounts for 2FA. Use dedicated service accounts with token controls instead.
- Rollout order: Start with administrators, then agents, so the admin reset process is tested on a small group first.
Confirm in the current Zammad admin documentation whether 2FA can be enforced per role or only globally, because that decides whether this mapping can be enforced in the product or only by policy.
Configuration options and when each fits
This table compares the main 2FA choices for Zammad agents and admins, with the situations where each fits and the trade-off to weigh. Read each row as a decision: choose the method per user group, then confirm in the Zammad admin documentation how enforcement, recovery and resets work in your version. The main takeaway is that the strongest factor for admins is rarely the only control that matters, because recovery and reset paths can weaken it.
| Configuration choice | When it fits | Trade-off to weigh |
|---|---|---|
| Authenticator app (TOTP) per user | Agents who need a low-cost second factor on a personal phone | Tied to the phone; a lost or replaced device needs recovery codes or an admin reset |
| Security key per user | Admins and staff who can reach customer data or system settings | Needs hardware purchase and distribution; confirm which key types Zammad accepts |
| Recovery codes | Backup for any user who loses a device | Each code is a live credential; keep them out of tickets and shared drives |
| Enforcing 2FA by role | Requiring stronger setup for admins than for general agents | Confirm in the admin docs whether enforcement targets roles; otherwise audit compliance by hand |
| Admin reset for locked-out users | Small teams where an admin can verify identity out of band | The reset becomes a target for social engineering; require a verified request and review the audit log |
| MFA delegated to SAML or OIDC | The organization already enforces MFA at its identity provider | Confirm whether local 2FA still applies to SSO logins; keep a 2FA-protected local admin account |
| Local password with 2FA, no SSO | The identity provider is not yet connected to Zammad | Two local factors still depend on password policy and lockout settings being maintained |
Rolling out 2FA in Zammad in a controlled sequence
This sequence moves Zammad agents and admins onto two-factor authentication in stages, so each group is tested, supported and recoverable before the next group is required to use it.
Confirm the version and build a staging copy
Record the Zammad version running in production and compare it with the current releases page, including any security release published for your line. Restore a recent production backup to a staging instance with the same configuration, then confirm the 2FA settings are available in that version's admin interface. Done means you have a staging login working and a written note of the version you are testing against.
Pilot 2FA with a small admin group
Ask two or three administrators to enroll on staging first, using each method you plan to allow, such as a security key and an authenticator app. Have them log out and back in, and confirm the prompt appears and accepts a valid code. Done means every pilot admin has completed a full enrollment and login on staging, and you have noted any confusing prompts for the user guide.
Enable the approved 2FA methods
In the security settings, turn on only the second-factor methods your policy allows, and confirm which ones agents can choose from. Test each enabled method on staging with a fresh account, including a failed code attempt. Done means each permitted method completes enrollment and login, and disabled methods do not appear to users.
Issue recovery codes before enforcement
Require each pilot user to generate and store recovery codes in a password manager or other approved vault before any enforcement applies to them. Test one recovery code login on staging, then confirm that the code is consumed after use. Done means every pilot user can show they hold working codes, and your team knows where codes are kept for each user.
Document and test the admin reset procedure
Write the steps an administrator follows to reset a locked-out user's 2FA, including who approves the request, how identity is confirmed, and how the reset is logged. Rehearse the procedure on a staging test account and confirm the user can enroll again afterward. Done means a second administrator has followed the written steps successfully and the procedure is stored with your runbooks.
Enforce 2FA by role in waves
Enable enforcement for one role at a time in production, starting with administrators, then agents, and finally any other staff roles you manage. Announce each wave in advance, and keep the admin reset procedure ready for the first week. Done means each role's enforcement is active, and your support queue shows the lockout requests you expected rather than unplanned ones.
Verify each wave with login tests
After each enforcement wave, run a login test for one account per role, plus one user who relies on SAML or OIDC sign-in, to confirm how that path interacts with the local 2FA prompt. Check the audit log for the enforcement change and the test logins. Done means each role has a passing login test on record, and any SSO behavior you did not expect is documented before the next wave.
How 2FA interacts with logins through SAML or OIDC
Zammad's own two-factor authentication does not automatically cover people who sign in through a third-party provider. Zammad supports SAML, OpenID Connect and several social providers, and when a user authenticates through one of them, the login is decided by the identity provider. Before you enforce anything, confirm whether Zammad's 2FA check runs for SSO sign-ins in your installed version, and test it with a non-admin agent account rather than assuming. Your identity provider may already require MFA for every application, which is often the cleaner place to enforce it, but Zammad's policy and the provider's policy are separate settings that you must review side by side.
Decide where enforcement must live for each population. For staff who sign in through SAML or OIDC, the identity provider's MFA policy, conditional access rules and session lifetime are the controls that matter, and they should cover Zammad as an application. For local accounts, Zammad's own 2FA settings and role-based enforcement apply. Write down which roles, including admins, can still use a local password, because an admin who signs in locally bypasses the identity provider entirely. Ask your identity team to confirm that the Zammad application in the provider cannot be reached by an unauthenticated or single-factor path, and that group membership changes in the provider remove Zammad access promptly.
The larger risk is the local password fallback. A local account that remains active, especially an administrator account created during installation or an old agent account, gives an attacker a route around SSO and around any MFA the identity provider enforces. Inventory every account with a local password, disable or reset those that should not exist, and keep at least one break-glass admin with a strong password, enforced 2FA and a recovery process that is written down and tested. Review this list after each change to the identity provider, since a new connection or a restored backup can quietly re-enable access paths.
How an agent login passes through password, SSO and the second factor
The login starts at the Zammad sign-in page and splits into two paths: local credentials checked against the PostgreSQL user record, or a redirect to a SAML or OpenID Connect identity provider. Both paths meet at the second factor check, where a security key or authenticator app code is verified. If the factor is lost, a recovery code is used, and if no code remains, an administrator resets the factor for the locked-out user. Check that SSO users still face the factor your policy requires, and that the reset path is logged.
Login paths for agents and admins, with the second factor check and reset route.
Security risks to close during the 2FA rollout
Two-factor authentication only helps if the accounts most likely to be attacked are covered and the recovery paths do not undo the protection. The cards below cover the gaps we see most often when a Zammad rollout moves from a pilot to every agent and administrator.
Admin accounts without 2FA
Administrators can change roles, export data, alter integrations and reset other users, so a single admin with a stolen password is the most damaging entry point in a helpdesk. Before enforcement, list every account with the admin role and confirm each one has a second factor registered, including service-style accounts that people use interactively. Check that no admin account is exempt from the policy. Then confirm that enforcement applies to the role, not just to the users who volunteered.
Recovery codes stored insecurely
Recovery codes let a user regain access when the second factor is lost, which makes them a password equivalent. Staff often save them in plain text files, chat threads or shared password notes where anyone with access to that location can sign in. Ask each user to store codes in a personal password manager or a sealed offline location, and confirm that codes are shown once at setup and are not sent by email. Record the procedure in your onboarding guide.
Lockout after device loss
When an agent loses the phone or security key that holds their second factor and has no recovery codes, the account becomes unusable until an administrator intervenes. Rushed resets are a common route for social engineering, so the reset step itself becomes a risk. Agree a verification procedure with the identity owner before the rollout, such as a call-back to a known number or manager confirmation, and test it on a pilot account.
Enforcement gaps for SSO users
Users who sign in through SAML or OpenID Connect may never see a Zammad 2FA prompt, because the identity provider decides how they authenticate. That can leave an assumed control missing for part of the user base, or create two inconsistent policies. Confirm which accounts authenticate locally and which through the identity provider, and verify that the identity provider enforces its own second factor for the same groups. Document the result as a single policy owned by one team.
Session persistence after enabling 2FA
Sessions opened before 2FA was enforced can remain valid, so an attacker who already holds a session may keep working after the rollout appears complete. Review active sessions for each privileged user after enforcement, end sessions that predate the change, and confirm that password resets and admin resets terminate existing sessions. Also check the session lifetime configured for admins, since a long default lifetime extends the window where a stolen session is useful.
Audit visibility of admin resets
Each admin reset of a second factor removes the control for one account, and it should appear in a record someone reviews. Confirm that Zammad's audit log captures the reset, the administrator who performed it and the affected user, and decide who reviews those entries and how often. Keep exports of the log beyond the retention period your policy requires, because the built-in log retains entries for a fixed period.
Questions buyers ask before enforcing 2FA in Zammad
What drives the cost of a 2FA rollout done in-house versus by a partner?
An in-house rollout costs your staff time, while a partner rollout costs the fixed fee in the written scope. Internal costs include admin hours for policy design, testing on a staging copy, user communication, help desk time for enrollment problems, and follow-up with people who never enrolled. Some of these recur when new agents join or roles change. A partner quote should list the same steps as named deliverables, so compare the two lists line by line. Ask every bidder what is one-time, what recurs, and who handles recovery requests after go-live. Self-hosted Zammad has no license fee, so the 2FA work is the main cost on top of your hosting, unless you also buy a support subscription, which is priced separately.
How long does a staged 2FA rollout take for our number of users?
The duration depends mainly on how many people need to enroll, whether logins go through SAML or OIDC, and how many roles you enforce in stages. A group of agents on local passwords with one admin role is a much shorter job than a mixed team with SSO, shared workstations and service accounts that need a different approach. A staged rollout usually starts with admins, then a pilot group, then the remaining roles, with the lockout procedure tested before each stage. The sources for this page do not give a fixed duration, so ask any provider for a staged plan with clear exit criteria for each stage. Your change calendar and support coverage will also set the pace.
What does our team need to provide before 2FA work can start?
The work needs decisions and access more than code. Expect to provide:
Can our own team enforce 2FA in Zammad without outside help?
Yes, a team with Linux and Zammad administration experience can do it alone, provided it has a staging copy and a tested rollback. Most of the work is policy decisions, settings in the admin interface, user communication and recovery procedures, not custom development. Before you change login settings, check the Zammad releases page for the version you run, because security releases can change behavior. Where teams struggle is usually a rushed enforcement date with no one ready for lockout calls on the first day. A partner adds the most value when the scope also includes SSO integration, several environments or evidence for a compliance review.
How should we handle agents who lose their 2FA device?
Verify the person's identity through a channel separate from the login, such as a call to a known number or confirmation from their manager, and only then reset their 2FA through an admin account. Make sure the reset is recorded, and that the person enrolls a new method before they resume full access. Recovery codes help only if users stored them when they enrolled, so make that step part of the rollout and test it with the pilot group. Write the procedure down with named approvers and a backup approver for holidays. Confirm the exact reset steps and whether your version logs them in the admin audit log, using the documentation for your installed version.
Does a self-hosted Zammad support subscription change the 2FA work?
A subscription changes who you can ask for help, not the planning or testing you still need to do. Zammad sells self-hosted support subscriptions named Business at 2,999 EUR per year, Enterprise at 5,999 EUR per year and Corporation at 9,999 EUR per year, according to its pricing page. Response times are 6 hours for Business, 4 hours for Enterprise and 2 hours for Corporation, per the same source. Before you rely on that support during an enforcement window, ask Zammad in writing what it covers for authentication issues, and whether it covers your environment and any SSO provider you connect.
Does SSO through SAML or OIDC replace Zammad's own 2FA?
It can, but only if you confirm where the second factor is enforced and which accounts still log in locally. Zammad supports third-party login through SAML and OpenID Connect, among other providers, so one option is to require MFA at the identity provider and keep local passwords for a few break-glass admins. Test every path a user can take into Zammad, including local admin accounts, API use and any account that bypasses the identity provider. Document the result, because an auditor will ask where the second factor is enforced for each login method. Check the third-party documentation for the setting that governs local login alongside SSO.
Which Zammad users should get security keys instead of authenticator apps?
Give security keys to the users whose accounts would do the most damage if phished, usually administrators and anyone with broad ticket or customer data access. Authenticator apps suit most agents, who need a reliable second factor without buying hardware. Consider shared workstations and staff who share phones, since they change how a device is used and lost. Budget and replacement logistics matter too, because a lost key needs the same recovery path as a lost phone. Confirm which second-factor methods your Zammad version supports in its admin documentation before you set a policy, and write the mapping from role to method into the rollout plan.
How DeployOpen scopes and delivers Zammad 2FA hardening
DeployOpen treats two-factor authentication for Zammad as a scoped change to how agents and admins sign in, not a settings toggle. We agree the roles, login paths and recovery process in writing, build the rollout in a staging copy first, and hand over the runbook your support team needs to act on lockouts.
How we scope
- Inventory which roles, agents, admins and integrations sign in locally, through SAML or OIDC, or through API tokens.
- Agree in writing which roles must enroll, which methods are allowed, and the enforcement date for each group.
- Confirm who may perform admin resets for locked-out users and how that request is verified before it is actioned.
How we build
- Configure 2FA enforcement by role in a staging copy of your Zammad instance and test enrollment with each allowed method.
- Test security keys, authenticator apps and recovery codes end to end, including the path for a user who has lost every factor.
- Verify how SSO logins interact with local 2FA so that no account can bypass the intended control through a secondary sign-in route.
How we hand over
- Deliver a written runbook covering enrollment steps, recovery code handling, admin reset procedure and audit checks.
- Document the enforcement settings as they were configured, with the test results and the exceptions agreed during scoping.
- Walk your administrators through the procedure and record the open questions that your own environment must confirm.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers, so 2FA settings can be rechecked after each Zammad release.
- Retesting of sign-in paths can be added to the retainer when identity providers, proxies or Zammad versions change.
- Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts and a quote following from that scope.

