Integrate with Zammad
Support level: Community
What is Zammad?
Zammad is a web-based, open source user support and ticketing system.
Preparation
The following placeholders are used in this guide:
zammad.companyis the FQDN of the Zammad installation.authentik.companyis the FQDN of the authentik installation.
This documentation lists only the settings that you need to change from their default values. Be aware that any changes other than those explicitly mentioned in this guide could cause issues accessing your application.
- SAML
- OIDC
authentik configuration SAML
To support the integration of Zammad with authentik using SAML, you need to create SAML property mappings and an application/provider pair in authentik.
Create property mappings
Zammad requests SAML attributes named email, name, first_name, and last_name. Create custom property mappings so authentik sends those attribute names in the SAML assertion.
-
Log in to authentik as an administrator and open the authentik Admin interface.
-
Navigate to Customization > Property Mappings and click Create.
-
Select SAML Provider Property Mapping as the type and click Next.
-
Create a property mapping with the following values:
-
Name:
Zammad email -
SAML Attribute Name:
email -
Expression:
return request.user.email
-
-
Click Finish to save the property mapping.
-
Repeat steps 2-5 to create the following additional SAML provider property mappings:
-
Name:
Zammad name -
SAML Attribute Name:
name -
Expression:
return request.user.name or request.user.get_full_name() or request.user.username -
Name:
Zammad first_name -
SAML Attribute Name:
first_name -
Expression:
return request.user.first_name or (request.user.name.split(" ", 1)[0] if request.user.name else request.user.username) -
Name:
Zammad last_name -
SAML Attribute Name:
last_name -
Expression:
return request.user.last_name or (request.user.name.rsplit(" ", 1)[-1] if " " in request.user.name else "")
-
Create an application and provider
authentik 2026.5 introduces changes to how the SAML provider behaves. Specifically, the provider now automatically sets the Issuer value to: https://authentik.company/application/saml/<application_slug>/metadata/
Older versions of authentik set this value to authentik by default. If you're running an older version, please set Issuer to https://authentik.company/application/saml/<application_slug>/metadata/, where <application_slug> is the slug that you selected for the application.
-
Log in to authentik as an administrator and open the authentik Admin interface.
-
Navigate to Applications > Applications and click New Application to open the application wizard.
- Application: provide a descriptive name, an optional group for the type of application, the policy engine mode, and optional UI settings. Note the Slug value because it will be required later.
- Choose a Provider type: select SAML Provider as the provider type.
- Configure the Provider: provide a name (or accept the auto-provided name), the authorization flow to use for this provider, and the following required configurations.
- Set the ACS URL to
https://zammad.company/auth/saml/callback. - Set the Audience to
https://zammad.company/auth/saml/metadata. - Set the SLS URL to
https://zammad.company/auth/saml/slo. - Set the SLS Binding to
Redirect. - Set the Logout Method to
Front-channel (Iframe). - Under Advanced protocol settings:
- Select an available Signing Certificate.
- Set NameID Property Mapping to
Zammad email. - Set Default NameID Policy to
Email. - Add the Zammad property mappings that you created earlier to Selected User Property Mappings.
- Set the ACS URL to
- Configure Bindings (optional): you can create a binding (policy, group, or user) to manage the listing and access to applications on a user's Application Dashboard page.
-
Click Submit to save the new application and provider.
Download the certificate file
- Log in to authentik as an administrator and open the authentik Admin interface.
- Navigate to Applications > Providers and click on the name of the provider that you created in the previous section (e.g.
Provider for zammad). - Under Related objects > Download signing certificate, click on Download. This downloaded file is your certificate file and it will be required in the next section.
Zammad configuration SAML
To configure Zammad's SAML integration with authentik, log in to Zammad as an administrator. Go to Settings (the gear icon) and select Security > Third-party Applications.
At the top of the Third-party Applications page, enable Automatic account link on initial logon if existing Zammad users should be linked to matching authentik users during their first SSO login.
- Activate the Authentication via SAML toggle.
- Set the following fields:
- Display name: authentik
- IDP SSO target URL:
https://authentik.company/application/saml/<application_slug>/ - IDP single logout target URL:
https://authentik.company/application/saml/<application_slug>/ - IDP Certificate: paste the contents of your certificate file.
- Name Identifier Format:
urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress
- Click Submit to save the authentication settings.
If Zammad cannot validate the connection to authentik when saving the SAML configuration, review the certificate trust path before temporarily disabling SSL verification. Disabling SSL verification accepts any presented certificate and should only be used for testing or short-term troubleshooting.
Configuration verification
To verify that authentik is correctly integrated with Zammad, log out of Zammad, open Zammad, and log in by clicking the SAML button on the login screen. The button shows the Display name that you configured in Zammad.
authentik configuration OIDC
In authentik versions earlier than 2026.5, all Redirect URIs are automatically treated as Authorization type. If you are using one of these older authentik versions, add only the Authorization URL to your Redirect URIs and do not configure a Post Logout URI.
To support the integration of Zammad with authentik using OIDC, you need to create an application/provider pair in authentik.
Create an application and provider
-
Log in to authentik as an administrator and open the authentik Admin interface.
-
Navigate to Applications > Applications and click New Application to open the application wizard.
- Application: provide a descriptive name, an optional group for the type of application, the policy engine mode, and optional UI settings. Note the Slug value because it will be required later.
- Choose a Provider type: select OAuth2/OpenID Connect as the provider type.
- Configure the Provider: provide a name (or accept the auto-provided name), the authorization flow to use for this provider, and the following required configurations.
- Set the Client type to
Public. - Note the Client ID value because it will be required later.
- Add a Redirect URI of type
StrictAuthorizationashttps://zammad.company/auth/openid_connect/callback. - Set the Logout URI to
https://zammad.company/auth/openid_connect/backchannel_logout. - Select a Signing Key.
- Under Advanced protocol settings, set Subject Mode to Based on the User's Email.
- Set the Client type to
- Configure Bindings (optional): you can create a binding (policy, group, or user) to manage the listing and access to applications on a user's Application Dashboard page.
-
Click Submit to save the new application and provider.
Zammad configuration OIDC
To configure Zammad's OIDC integration with authentik, log in to Zammad as an administrator. Go to Settings (the gear icon) and select Security > Third-party Applications.
At the top of the Third-party Applications page, enable Automatic account link on initial logon if existing Zammad users should be linked to matching authentik users during their first SSO login.
-
Activate the Authentication via OpenID Connect toggle.
-
Set the following fields:
- Display name: authentik
- Identifier: enter the Client ID from authentik.
- Issuer:
https://authentik.company/application/o/<application_slug>/ - PKCE:
yes
-
Click Submit to save the authentication settings.
Configuration verification
To verify that authentik is correctly integrated with Zammad, log out of Zammad, open Zammad, and log in by clicking the OIDC button on the login screen. The button shows the Display name that you configured in Zammad.