Skip to content

SAML authentication

Zulip supports using SAML authentication for single sign-on, both for Zulip Cloud and self-hosted Zulip servers. SAML Single Logout is also supported.

This page describes how to configure SAML authentication with several common providers:

  • Okta
  • OneLogin
  • Entra ID (AzureAD)
  • Keycloak
  • Auth0

Other SAML providers are supported as well.

If you are self-hosting Zulip, please follow the detailed setup instructions in the SAML configuration for self-hosting. The documentation on this page may be a useful reference for how to set up specific SAML providers.

  1. Make sure your Zulip Cloud organization is on the Zulip Cloud Plus plan.
  2. Set up SAML authentication by following Okta’s documentation. Specify the following fields, skipping Default RelayState and Name ID format:
    • Single sign on URL: https://auth.zulipchat.com/complete/saml/
    • Audience URI (SP Entity ID): https://zulipchat.com
    • Application username format: Email
    • Attribute statements:
      • email to user.email
      • first_name to user.firstName
      • last_name to user.lastName
  3. Assign the appropriate accounts in the Assignments tab. These are the users that will be able to log in to your Zulip organization.
  4. If you are using Zulip Cloud, we’ll take it from here! Please email support@zulip.com with the following information:

    • Your organization’s URL
    • The Identity Provider metadata provided by Okta for the application. To get the data, click the View SAML setup instructions button in the right sidebar in the Sign on tab. Copy the IdP metadata shown at the bottom of the page.
    • How you would like the Zulip log in button to be labeled: “Log in with…”
    • (optional) An icon to use on the log in button

You can configure each Zulip user’s groups to be updated based on their groups in your Identity Provider’s (IdP’s) directory every time they log in.

Your IdP directory’s group names don’t have to match the associated Zulip group names (e.g., membership in your IdP’s group finance can be synced to membership in the Zulip group finance-department). See the technical documentation on how your IdP’s groups are mapped to Zulip groups for details.

  1. Follow the instructions above to configure SAML, and go to the application you created for using SAML with Zulip in your Applications menu.
  2. Select the General tab, and Edit the SAML Settings section.
  3. Proceed through the prompts until the main Configure SAML prompt.
  4. Scroll down below the Attribute Statements section (which you configured when creating the app) to Group Attribute Statements.
  5. Add the following attribute:
    • Name: zulip_groups
    • Name format: Unspecified
    • Filter: Matches regex: .* When a user signs in to Zulip via SAML, Okta will now include a list of the user’s groups in its response to the Zulip server.
  6. To enable this feature, please email support@zulip.com with the following information:
    • Your Zulip organization URL.
    • Which groups should be synced from your IdP’s directory.
    • Which groups should have a different name in Zulip (if any).