Zammad SSO Setup: SAML, OIDC, and Group Mapping
Learn to set up Zammad SSO with SAML, OIDC, or LDAP. Step-by-step guide covers group mapping, troubleshooting, and rollout strategy. No password resets.
- Zammad SSO (SAML, OIDC, LDAP) reduces password resets by 70% and cuts agent onboarding time in half.
- Group mapping from your identity provider to Zammad roles is the critical step most admins miss--this guide covers real examples.
- Worth implementing if you have 5+ agents and an existing identity provider; skip if under 5 agents or no corporate directory.
Zammad SSO (Single Sign-On) lets your users log in using their existing corporate identity, cutting password resets by 70% and cutting onboarding time in half. This guide walks you through SAML, OIDC, LDAP, and group mapping--the exact steps most IT teams miss.
Why Implement SSO in Zammad?
SSO centralizes login across your entire organization. Users log in once with their corporate credentials--Okta, Microsoft Entra, Keycloak, or any SAML-compatible provider--and that one session grants them access to Zammad and everything else. No separate password to manage, no password reset tickets cluttering your queue.
For a team of 20 support agents, password resets average 2 per day. That's 40 per month. At 15 minutes per reset (IT person plus user confusion), you're burning 10 hours monthly just resetting passwords. SSO kills this. Users log in. Done.
Security gets tighter: you control password policy in one place, not scattered across Zammad. You can enforce MFA at the identity provider level--that one policy gates access to Zammad, your CRM, your documentation repo, everything. When someone leaves, you disable their account once, and they're locked out everywhere. You have audit trails: exactly who logged in, when, and from where. That matters for compliance.
For compliance teams, centralized authentication is a checkbox you need. It simplifies audits. It proves you're not storing passwords in Zammad (you're not--the identity provider is). And you can back up your auth logs alongside your Zammad backups--which you should do regularly on managed Zammad.
What SSO Protocols Does Zammad Support?
Zammad supports four flavors of SSO. Each solves a different problem.
SAML 2.0 is the standard for enterprise. If your org already uses Okta, Microsoft Entra ID (formerly Azure AD), or Keycloak, SAML is your path. It's XML-based, battle-tested, and supported everywhere. Configuration takes 20-30 minutes. Zammad 5.0+.
OpenID Connect (OIDC) is the newer approach. It's JSON-based, simpler than SAML, and becoming the default for new providers. Auth0, Authentik, and others prefer OIDC. Use OIDC if your IdP offers both and you have Zammad 6.5+. Setup takes 15-20 minutes.
LDAP/Active Directory directly syncs users from your on-prem directory (Windows AD, FreeIPA, OpenLDAP). No identity provider needed--Zammad queries your LDAP server and pulls user accounts. Great if you don't use Okta or similar. Setup is longer (30-45 minutes) because you need to map LDAP attributes manually.
Social Login (OAuth 2.0) lets users log in with Google, GitHub, or Microsoft one-click. Useful for public support portals or multi-tenant instances. Not useful for internal team access (you want company SSO, not personal Gmail).
| Protocol | Complexity | Setup Time | Use When |
|---|---|---|---|
| SAML | Moderate | 20-30m | Enterprise IdP (Okta, Entra, Keycloak) |
| OIDC | Low | 15-20m | Modern IdP (Auth0, Authentik), Zammad 6.5+ |
| LDAP | High | 30-45m | On-prem directory (AD, FreeIPA), no cloud IdP |
| OAuth/Social | Low | 5-10m | Public portals, external users, not team SSO |
For most IT teams: pick SAML if you already have an enterprise IdP, OIDC if you're setting up Authentik or Auth0, LDAP if you're on-prem with no cloud IdP.
How to Set Up SAML in Zammad
Let's walk through SAML setup. The example assumes you're using Okta or Keycloak--the steps are similar for other SAML providers. You'll need admin access to both Zammad and your IdP.
Step 1: Export Zammad's SAML Metadata
Log in to Zammad as an admin. Go to Admin Panel > System > SAML > SAML Settings. Under 'General,' you'll see a URL to your Zammad instance's SAML metadata endpoint. Copy this URL. You'll give it to your IdP next.
Step 2: Configure SAML in Your Identity Provider
In Okta:
- Go to Applications > Applications > Create App Integration > SAML 2.0.
- Paste Zammad's metadata URL under "SAML Metadata URL" or manually enter your Zammad instance's SAML Single Sign-On URL and Entity ID.
- In Attribute Statements, map these (critical):
- email = user.email
- first_name = user.firstName
- last_name = user.lastName
- groups = user.groups (optional, for role mapping)
In Keycloak:
- Create a new SAML client.
- Set Client ID to your Zammad domain.
- Set Root URL to your Zammad instance's URL.
- In Mappers, add these protocol mappers:
- User Property: email
- User Property: firstName
- User Property: lastName
- Group Membership: map to 'groups' claim (this matters for role mapping).
Step 3: Retrieve IdP Metadata
Okta: Go to Sign On > Metadata and download the XML file (or note the metadata URL).
Keycloak: Go to Realm > Clients > Zammad > SAML Keys and copy the metadata endpoint.
Step 4: Configure SAML in Zammad Admin Panel
In Zammad, Admin Panel > System > SAML:
- Under Metadata URL, paste your IdP's metadata URL (Okta, Keycloak, etc.). Zammad will auto-populate certificate and settings. OR: Upload the IdP's metadata XML file directly under 'Upload Metadata XML.'
- Under 'UID Attribute Name,' enter 'email' (or whatever unique identifier you're using).
- Under 'User Mapping,' fill in:
- 'email' -> email (from your IdP)
- 'firstname' -> first_name (from your IdP)
- 'lastname' -> last_name (from your IdP)
- Leave 'Create User Automatically' checked (creates new users on first login).
- Save.
Step 5: Test Login
Log out of Zammad. On the login page, click 'Sign in with SAML.' You'll redirect to your IdP (Okta/Keycloak). Log in with your corporate credentials. You should land back in Zammad, logged in.
If this fails, check: Is your computer on the IdP's network? Is the email in your IdP matched to an email domain Zammad knows? Is your certificate unexpired?
How to Set Up OIDC in Zammad
OIDC is faster if your IdP supports it (Authentik, Auth0, Keycloak 20+). Zammad 6.5+.
Step 1: Register Zammad as an OIDC Client
In Authentik:
- Applications > Create > Applications.
- Name: Zammad.
- Slug: zammad.
- Provider: Create new OIDC Provider.
- Redirect URIs: your Zammad instance's OIDC callback endpoint.
- Save. Note the Client ID and Client Secret.
In Auth0:
- Applications > Applications > Create.
- Application type: Regular Web Application.
- Name: Zammad.
- Allowed Callback URLs: your Zammad instance's OIDC callback endpoint.
- Save. Note the Client ID and Client Secret (under Basic Information).
Step 2: Configure OIDC in Zammad
Admin Panel > System > OIDC:
- 'Enabled': Check this.
- 'Display Name': 'SSO' or 'Company Login'.
- 'Client ID': Paste the ID from your IdP.
- 'Client Secret': Paste the secret from your IdP.
- 'Site': Your IdP's URL (e.g., your Authentik server or Auth0 tenant).
- 'Authorization Endpoint': /application/o/authorize/ (Authentik) or leave blank (Auth0 auto-detects).
- 'Token Endpoint': /application/o/token/ (Authentik) or leave blank.
- 'User Info Endpoint': /application/o/userinfo/ (Authentik) or leave blank.
If unsure, grab the OIDC metadata from your IdP's well-known configuration endpoint. Zammad can auto-populate endpoints from the metadata.
Step 3: Test
Log out and click 'SSO.' You should redirect to your IdP. Log in. If it works, you're done in 10 minutes. If not, check the Zammad logs (Admin Panel > System > Activity Log) for errors like 'Invalid Client ID' or 'Callback URL mismatch.'
Mapping User Groups to Zammad Roles
This is where most admins get stuck. Zammad has roles: agent, admin, customer, etc. Your IdP has groups: 'support-team', 'managers', 'billing'. You need to wire them together so the right people get the right role.
Zammad stores groups as a user attribute. When you log in via SAML or OIDC, your IdP sends groups. Zammad looks at that list and assigns the user a role.
Setup in Your IdP
In Okta (SAML): Add a Group Membership attribute mapper. In your Zammad SAML app, go to Attribute Statements. Add: groups = user.groups (this sends every group the user belongs to as a list).
In Authentik (OIDC): Add a scope and mapper. Applications > OIDC Provider > Scopes > Create: name 'groups'. Mappers > Create: Protocol Mapper. Type: Group Membership. Name: groups. Claim: groups.
Setup in Zammad
Admin Panel > System > User Management > Roles & Departments.
- Create or edit a role (e.g., 'Agent').
- Under 'Group Assignment' (or 'Groups'), enter the IdP group name: 'support-team'.
- Save.
Now, any user in the 'support-team' group in your IdP logs into Zammad and automatically gets the 'Agent' role.
Real Example: Mapping Multiple Groups
Say you have three teams: 'support-team' -> Agent role, 'managers' -> Admin role, 'billing' -> Customer role.
In Zammad:
- Agent role: group = 'support-team'
- Admin role: group = 'managers'
- Customer role: group = 'billing'
When a user logs in: If they're in 'support-team', they get Agent. If they're in 'managers', they get Admin (even if also in support-team). If only in 'billing', they get Customer. Zammad checks groups in order and assigns the first match. So order matters if users are in multiple groups. Test this.
Gotcha: Group Names Are Case-Sensitive
If your IdP sends 'Support-Team' (capital S) and you configure 'support-team' (lowercase) in Zammad, it won't match. The sync fails silently--the user logs in but stays a Customer (the default). Check your IdP's group list and copy the name exactly, case and all.
Group Sync Timing
Zammad syncs groups on every login. If you move a user from 'support-team' to 'billing' in your IdP, they'll see the change the next time they log in to Zammad. If you want immediate sync, ask them to log out and back in. There's no 'force sync' button in Zammad.
Common SSO Configuration Issues & Fixes
Problem: User can't login after SSO is enabled
Check: (1) Is SSO actually enabled in Zammad? (Admin Panel > System > SAML/OIDC > Enabled.) (2) Is the user's email in both systems? Zammad needs an email. If your IdP returns only a username, Zammad can't create the account. (3) Is the certificate expired? IdPs rotate certificates. Zammad validates the certificate on every login. If it's expired, login fails silently. Check your IdP's cert expiry date and renew before it expires. (4) Is the callback URL correct? After login, your IdP redirects to your Zammad instance's SAML ACS endpoint (SAML) or OIDC callback endpoint (OIDC). If the URL in your IdP doesn't match Zammad's domain exactly, login fails.
Problem: User logs in but has the wrong role
Check: (1) Are groups being sent? Add a test user, log in, go to their profile (Admin Panel > Users). Look at the 'Groups' field. If it's empty, your IdP isn't sending groups. Go back and configure the group mapper in your IdP. (2) Do group names match? Group names are case-sensitive. 'Support-Team' != 'support-team'. Fix the typo in Zammad. (3) Is the user in the IdP group? If you configured the group mapping but the user isn't in that group yet, they won't get the role. Add them to the group in your IdP and have them log out and back in.
Problem: User logs in but can't log out (or logout fails)
SAML Single Logout (SLO) is optional. If SLO isn't configured, users can log out of Zammad (clearing their local session) but stay logged in to their IdP. The next link they click logs them straight back into Zammad. This confuses people.
Fix: Configure SLO in your IdP: Okta: Add your Zammad instance's Logout URL to the SAML app settings. Keycloak: Set Front Channel Logout enabled, and configure the Logout Service POST Binding URL to point to your Zammad instance. Then test: Log in, log out, hit the login page again. You should need to log into your IdP again.
Problem: Attribute mapping is wrong (email not found, name fields blank)
This usually means the attribute name in Zammad doesn't match what your IdP sends. In Okta, the attribute is 'email'; in some LDAP systems, it's 'mail'. In Zammad's config, you specify the name. If they don't match, the value doesn't sync.
Fix: Check your IdP's user profile. See what attributes it actually sends: Okta: Applications > App name > Sign On > SAML Attribute Statements. Authentik: Applications > Application name > User Credentials > Inspect a test user's JWT (decode it at jwt.io). Match those names in Zammad's User Mapping section.
Problem: Certificate errors (SSL verification failed)
Zammad verifies the IdP's SSL certificate. If your IdP uses a self-signed cert or an internal CA, Zammad rejects it.
Fix: Import the IdP's CA certificate into Zammad (Admin Panel > System > Security > Certificates). Or, if you trust the IdP, disable certificate verification (Admin Panel > System > SAML/OIDC > Disable SSL Verification, check at your own risk). Note: SSO configs can change between Zammad versions; see our update guide for migration notes.
When SSO Is Worth It vs. When It's Not
SSO is not free. It costs setup time (1-2 hours), ongoing maintenance (certificate renewals, provider updates), and mental overhead (one more system to debug when something breaks).
Do it if:
- You have 5+ support agents. The password-reset savings start to add up.
- You already have an identity provider (Okta, Entra, Keycloak, FreeIPA, Active Directory). You've already paid for it; using it in Zammad costs nothing extra.
- You have compliance requirements (GDPR, SOC 2, ISO 27001). Your auditors want to see centralized auth and audit logs. SSO delivers.
Skip it if:
- You have 1-4 agents. Password resets are rare. The setup overhead isn't worth it.
- You have no identity provider and don't plan to use one (purely cloud shop, no Microsoft 365, no Okta, no internal directory). Spinning up Authentik or Keycloak just for Zammad is overkill.
- Your org's IT team is stretched thin and doesn't have bandwidth for a new integration. This is real. If SSO sits half-configured because no one has time to debug it, you're stuck.
Reality check: For a 2-person helpdesk? Skip SSO. Local auth is simpler. For a 20-person team with an existing AD? SSO is a no-brainer--it pays for itself in password-reset time alone. For a 10-person startup that just bought Okta for other apps? Configure SSO in Zammad. It's a 30-minute job.
Phased SSO Rollout Strategy
You don't have to cut users over to SSO all at once. Zammad lets you run SAML/OIDC + local logins simultaneously. Here's a low-risk approach.
Week 1: Pilot
- Configure SSO (follow the steps above).
- Pick 2 volunteers (ideally, people who are comfortable with tech).
- Tell them: 'We're testing a new login method. Try logging in via SSO instead of your password.'
- Monitor: Do they get in? Do their roles sync right? Any certificate errors? Fix bugs.
Week 2-3: Gradual Rollout
- Tell the first batch: 'Next Tuesday, everyone will migrate to SSO. After that, you'll log in with your Okta/Entra account, not a Zammad password.'
- Let them ask questions and test first. Have IT on standby during the first login wave.
- Once that batch is comfortable, move the next batch.
After Migration:
- Keep local login enabled for 2-4 weeks (in case you need to quickly let someone in if SSO breaks).
- After everyone has used SSO successfully, disable local login (Admin Panel > System > SAML/OIDC > Disable local auth, if option exists).
Contingency: If SSO breaks (certificate expires, IdP is down), users can still log in locally using their old password. This is why you don't rush. Test thoroughly before turning off the escape hatch.
Frequently Asked Questions
Q: Does Zammad SSO sync user groups automatically?
A: Yes. When you configure group mapping, Zammad pulls groups from your IdP on every login and assigns the right role. Changes take effect the next time the user logs in.
Q: Can I run SSO and local login at the same time?
A: Yes. Zammad supports both. This is how you roll out safely: SSO for most users, local login as a fallback for emergencies. Disable local after everyone's migrated.
Q: What if SSO login fails?
A: Check (1) certificate expiry, (2) callback URL match, (3) attribute mapping, (4) IdP is reachable. See the Troubleshooting section above. Zammad logs errors in Admin Panel > System > Activity Log.
Q: Which identity provider is easiest for Zammad?
A: Keycloak or Authentik if you self-host (open-source, free). Okta if you want managed (paid, but includes MFA, compliance templates). Microsoft Entra (formerly Azure AD) if you're already in Office 365.
Q: Do I need to pay for Zammad to use SSO?
A: No. Zammad is open-source. SSO is available in all editions: open-source, Community, plus Team/Professional (paid tiers with extra features). No additional cost.
Q: What attributes does Zammad need from SSO?
A: Minimum: email, first_name, last_name. Optional: groups (for role mapping). That's it.
Q: Can I map multiple groups to one Zammad role?
A: Yes. In Zammad's role config, list groups comma-separated or as separate entries (depending on Zammad version). E.g., 'support-team, support-tier2' -> Agent role.
The Bottom Line
SSO cuts password-reset noise and tightens security for teams running 5+ agents with an existing identity provider. For smaller shops without an IdP, the ROI usually isn't there. For anything bigger, the savings are real. The critical step most admins miss is group mapping from your IdP to Zammad roles. Get that right, and your users log in and immediately have the right permissions.
Ready to implement SSO on managed Zammad? Deploy on Opsily's EU infrastructure, and handle auth in your time. We handle uptime and backups.