How Metabase SAML SSO with Auth0 works
If your organization runs self-hosted Metabase and wants Auth0 to handle sign-in, the method Metabase documents is SAML through Auth0's SAML2 Web App add-on. You create a Regular Web Application in Auth0, set the callback URL to one ending in /auth/sso, activate the SAML2 Web App add-on, and paste a mapping JSON so Auth0 sends the attributes Metabase expects. SAML SSO requires a Pro or Enterprise plan, so confirm the license tier before any Auth0 work starts. On Open Source or Starter, SAML is not available and Google sign-in or LDAP are the built-in options.
Once configured, users sign in to Metabase through an Auth0 login page instead of a Metabase password. Auth0 authenticates the person against its own user store or an upstream connection your team configures, then posts a SAML assertion back to Metabase. Metabase uses the attributes in that assertion to match or create the user account. Password logins for those users can be turned off later, but that is a separate policy decision covered in the session and password section. Administrators gain a central place to disable a person's access, since removing them in Auth0 stops new sign-ins.
Admins should plan for two things before going live. First, the assertion attributes and any group values must match what Metabase expects, so test with a small set of accounts before opening access to everyone. Second, the Auth0 tenant becomes a dependency for every Metabase login, so decide who owns its configuration and how changes are reviewed. Confirm the exact field names, the mapping JSON and the callback URL against the Metabase Auth0 guide in your Metabase version, since those details change between releases.
What you need before configuring Auth0 and Metabase
Five things need to be in place before anyone opens the Auth0 dashboard or the Metabase admin settings. Each one is a decision or a check that, if skipped, usually shows up later as a failed login or a user in the wrong group. Work through them in order so the SAML configuration starts from settled inputs.
Metabase Pro or Enterprise license
SAML SSO for Metabase is available only on the Pro and Enterprise plans, not on Open Source or Starter. Confirm the plan on the instance before planning anything else, because an Open Source instance will not show the SAML option. Ask whether the license covers the number of named users you expect, since the pricing page lists per-user charges on the paid plans.
Metabase pricingReachable HTTPS Metabase URL
Auth0 sends the SAML response back to Metabase at a fixed callback address, so the instance needs a stable public or internal HTTPS URL that users' browsers and Auth0 can both reach. Decide the final hostname before configuring anything, because changing it later means updating the callback in Auth0 and the site URL in Metabase. Check the TLS certificate chain is trusted by the browsers you support.
Auth0 tenant with admin rights
You need an Auth0 tenant and an account with permission to create applications, enable add-ons and edit connections. Confirm who will own the application after go-live, and whether your organization requires a separate tenant for non-production testing. Changes to a shared tenant can affect other applications, so agree on a change window with the team that administers it.
Attribute and group list
Write down exactly which user attributes Metabase needs, such as email, first name and last name, and which group names should map to Metabase groups. Name the attributes the way your identity source stores them, because the mapping JSON in Auth0 must match them. Agree on which group names grant admin rights, since mistakes in that list are the costliest to fix after launch.
Test user set
Prepare a small set of test accounts that cover the cases you care about: a user in each mapped group, a user in no group, a user who should be denied, and an existing Metabase user whose email matches. Test users let you confirm provisioning and group behavior before real staff sign in. Record which account is the administrator who keeps a password login as a fallback.
Metabase version to confirm
Confirm the exact Metabase version your instance runs and check it against the current version support page before you follow any screen-level steps. Support windows differ between LTS and non-LTS releases, and an unsupported version may need an upgrade first. Write the version number into your change record so the test results can be reproduced.
Version supportConfiguring Auth0 and Metabase for SAML in sequence
This sequence connects an Auth0 tenant to a self-hosted Metabase over SAML so that users sign in through Auth0 and Metabase receives the attributes it expects. Each step ends with a check you can run before moving on. Confirm the exact menu labels and field names against the current Auth0 and Metabase screens in your environment, because both products change their interfaces over time.
Confirm the plan and the Metabase base URL
Before touching Auth0, confirm that your Metabase instance is on a plan that includes SAML. The pricing page places SAML SSO in the Pro and Enterprise plans, so an Open Source or Starter instance cannot complete this sequence. Also confirm the public URL users will type into their browser, including the scheme and host, because the callback URL and the Metabase site URL must match it exactly. The check is a written note of the plan, the site URL and the admin who will make the changes, agreed before anyone opens the Auth0 dashboard.
Create the Regular Web Application in Auth0
In the Auth0 dashboard, create a new application and choose the Regular Web Application type, which is the type Metabase's Auth0 guide uses for this setup. Give it a name your identity team will recognize, such as the Metabase environment and its stage. Save the application and keep the tenant domain and application settings open for the next steps. The check is that the application appears in the Applications list with the correct type and that the tenant domain is recorded in your change ticket.
Set the callback URL ending in /auth/sso
In the application settings, enter the callback URL for Metabase. According to Metabase's Auth0 guide, the callback URL ends in /auth/sso, so it is your Metabase site URL followed by that path. Use the same host and scheme you confirmed in the first step, and avoid trailing spaces or a different hostname for a reverse proxy. The check is a side-by-side comparison of the saved callback URL with the site URL in Metabase settings, read aloud or pasted into the ticket for a second reviewer.
Activate the SAML2 Web App add-on
Open the Addons tab of the Auth0 application and enable the SAML2 Web App add-on. In its settings, set the callback that Auth0 uses for the SAML assertion to the same Metabase callback URL, and set the audience or entity identifier as Metabase's documentation describes for the Auth0 setup. Save the add-on configuration. Record the SAML metadata or the issuer and certificate details that Auth0 exposes, because Metabase needs them in a later step. The check is that the add-on shows as enabled and that the metadata or certificate can be downloaded or copied.
Paste the mapping JSON so Auth0 sends the expected attributes
In the SAML2 Web App settings, replace the default mapping with the JSON from Metabase's Auth0 guide. This mapping tells Auth0 which user profile fields to place into the SAML assertion under the attribute names Metabase reads, such as the email address and name fields. Copy the JSON from the current Metabase documentation rather than retyping it from memory, and save the settings. The check is that the saved JSON matches the documentation character for character, and that a test user's profile contains values for every field the mapping references.
Enter the SAML settings in the Metabase admin panel
In Metabase, open the admin settings for authentication and select SAML. Enter the identity provider details from the Auth0 add-on, including the sign-on URL and the certificate, and confirm the attribute names match the mapping you pasted in Auth0. Leave the group mapping for a later step unless your team has decided how groups should be handled. Save the configuration and keep an admin session open in a separate browser so you can recover if the login breaks. The check is that Metabase saves the settings without a validation error and the SAML login option appears on the sign-in page.
Review the SAML response attributes
Before relying on the connection, sign in through Auth0 with a test account that is not a Metabase admin. Use a browser session with no existing Metabase cookies. Inspect the SAML response in your browser's developer tools or in an Auth0 log entry, and confirm that the attributes present are the ones Metabase expects, with the email value matching the Metabase user. The check is a short written record of the attribute names and values observed, plus confirmation that the non-admin user lands in Metabase with the expected account. Confirm any remaining group or admin behavior with your own environment before rollout.
Run a test login and record the result
Complete a full login with the non-admin test user and verify that the account is created or matched correctly, that the user sees only the content their role allows, and that signing out returns to the Metabase sign-in page. Repeat the test with one additional user from a different Auth0 role if your tenant uses roles. Store the test results, the Auth0 application settings and the Metabase SAML configuration in your change record. The check is a signed-off test record that a second person can review before the configuration is used by other staff.
Mapping Auth0 attributes and groups to Metabase users
This table lists the identity fields Metabase needs from the Auth0 SAML assertion and how each one is handled. Read it before you paste the mapping JSON, then confirm every attribute name against the Metabase Auth0 guide. The main takeaway is that group membership only syncs on Pro or Enterprise plans.
| Field | What Metabase needs | Where it comes from in Auth0 | What to confirm |
|---|---|---|---|
| Email address | Unique login and account identifier for the Metabase user | User profile email, mapped as an attribute in the SAML2 Web App add-on settings | Exact attribute name in the mapping JSON matches the Metabase Auth0 guide |
| First name | Display name on the Metabase user record | User profile given name, mapped in the mapping JSON | Name is sent on every login, not only at account creation |
| Last name | Display name on the Metabase user record | User profile family name, mapped in the mapping JSON | Users with no last name in Auth0 still log in without errors |
| Group attribute | List of groups used for Metabase group sync | A user or app metadata field, added to the mapping JSON and sent in the assertion | Group sync is enabled only on Pro or Enterprise, so Open Source or Starter ignores this field |
| Group values | Strings that match the group names Metabase maps to its own groups | Values assigned to each Auth0 user, such as roles or group names | Values are case-sensitive and match the mapping rules you configure in Metabase |
| Name ID format | Identifier Metabase uses to match a returning user | SAML NameID setting in the Auth0 add-on | Email-based NameID aligns with the email attribute so accounts are not duplicated |
| Admin flag | Whether the user is promoted to a Metabase admin | Not sent by default, so it needs a dedicated attribute if you use it | Confirm in the Metabase docs whether this is supported before you rely on it |
| Group removal | Users removed from a group in Auth0 lose that Metabase membership | Depends on sync running at each login | Test by removing a user from a mapped group and logging in again |
How group membership flows from Auth0 into Metabase
Group membership in this setup starts in Auth0, not in Metabase. Auth0 holds the users and the roles or groups assigned to them, and the SAML2 Web App add-on builds the assertion that Metabase receives at the callback URL ending in /auth/sso. The mapping JSON pasted into the add-on decides which attributes Auth0 places in that assertion, including the group values Metabase reads. Metabase then matches those incoming values against the group mappings configured in its admin settings and adds or removes the user from its own groups at sign-in. Each step is a separate place where membership can change, so the reader should trace one test user from an Auth0 role, through the attribute name in the assertion, to a Metabase group before anything goes live.
The mapping should be designed before rollout because changes to it take effect on the next sign-in and can move people in either direction. If an Auth0 role is renamed, an attribute name is changed in the mapping JSON, or a Metabase group mapping is removed, users may silently lose access to collections and data they need, or gain access to data they should not see. Permissions in Metabase are set per group, so a group mapping that is wrong is a permissions error, not only a login error. Before cutover, agree on the list of Auth0 roles, the exact attribute name Metabase expects, the matching Metabase groups and who approves changes to any of them. Confirm the exact attribute and group behavior against the current Metabase and Auth0 documentation for your versions, since those details are not restated here.
Test with at least one user in each group, not only the administrator account. For each test user, sign in through Auth0 and confirm the Metabase group membership, the collections visible in the browser and whether a query against a restricted database behaves as intended. Then remove a role from the test user in Auth0, sign in again, and confirm the access is withdrawn. Repeat the check after any change to the mapping JSON or the Metabase group mappings. Keep a short written record of which test user maps to which group and the results, because that record becomes the evidence for the next access review. Users who belong to more than one Auth0 role should also be tested, since the combined effect of several groups is the case most likely to surprise.
Security settings for Auth0 SAML with Metabase
The Auth0 SAML setup decides who can sign in to Metabase and who can change that decision later. The cards below cover the access, recovery and administration choices to make before users are switched to single sign-on, and the points where each one can fail.
Restrict the Auth0 application to intended users
The Regular Web Application in Auth0 should be assigned only to the users and groups who need Metabase. Check whether Auth0 lets any authenticated tenant user reach the application by default, and whether access rules or organization settings narrow it. A user who can authenticate to Auth0 but holds no Metabase account should be unable to get a session, and you should test that with a non-member account before go-live. Confirm the exact access settings in your Auth0 tenant, since they depend on your plan and configuration.
Auth0 SAML guideKeep a local admin account for recovery
If the SAML configuration breaks, such as an expired certificate, a changed callback URL or a mistyped attribute mapping, every user may be locked out at once. Keep at least one named Metabase admin with a password login that is tested before you enforce SSO, and store its credentials in your secrets vault. Record who holds it, when it was last used and how it is audited. Confirm with Metabase whether password login can be disabled per instance before you rely on it as the only fallback.
Review who can edit the SAML configuration
Changes to the SAML settings in Metabase, the Auth0 application and the SAML2 Web App add-on all alter who can sign in. Limit edit rights in Auth0 to a small platform team, and require a review for changes to the mapping JSON or the callback URL. Keep an export or copy of the working configuration under version control so a bad edit can be compared and reverted. Confirm which Auth0 roles can change applications and add-ons in your tenant.
Protect the signing certificate
The signing certificate that Auth0 uses to sign SAML assertions is the trust anchor for the whole integration. Restrict who can download, copy or rotate it, and avoid sending it through chat or email. Track its expiry date so a planned rotation does not become an outage, and update Metabase when the certificate changes. Confirm in your Auth0 tenant where the certificate is shown and how rotation is scheduled and communicated.
Limit which groups grant admin rights
Group claims sent from Auth0 can be mapped to Metabase groups, and a group mapped to the Metabase administrators group gives full control of the instance. Map admin rights only from a dedicated, tightly controlled Auth0 group, and do not derive admin status from broad groups such as all employees. Review the mapping after each change and test it with an account that should not be an admin. Group mapping on SAML requires a paid plan, so confirm the plan before you design around it.
Apply broader controls from the hardening and session topics
This integration covers only the identity path into Metabase. Session length, inactivity timeouts, password rules for any remaining password logins, and general instance hardening are handled separately. Review the Metabase security hardening and session timeout and password policy topics before the instance goes live, and set those controls to match your access policy. Treat this as a checklist item, not an afterthought, because a strong SAML setup does not limit what an idle session can do.
Why Auth0 SAML logins to Metabase fail
This table lists the failures teams most often hit when signing into Metabase through Auth0 SAML, with the likely cause and the first thing to check for each. Work down the rows in order, since a callback mismatch or missing HTTPS setting can look like an attribute or group problem. Each check assumes the Auth0 Regular Web Application and SAML2 Web App add-on are already configured as described in the Auth0 guide.
| Symptom | Likely cause | First thing to check |
|---|---|---|
| Auth0 shows an error after sign-in, or Metabase never receives the assertion | Callback URL mismatch | Confirm the Auth0 callback URL exactly matches your Metabase URL followed by /auth/sso, including scheme, host and port |
| Login works but the user is rejected or created without a name or email | Missing or misnamed attributes in the mapping JSON | Compare the attribute names in the add-on mapping JSON with what Metabase expects, and check spelling and case |
| User sees Auth0's access denied page before reaching Metabase | User not assigned to the Auth0 application | Confirm the user is granted access to the Metabase application in Auth0 and that no access policy blocks them |
| Users sign in but land in the wrong Metabase groups or with none | Group claims not reaching Metabase | Inspect the SAML response for the group attribute name and values, and confirm the attribute is included in the mapping JSON |
| SAML errors about destination or audience | Metabase URL or HTTPS mismatch | Check that Metabase's configured site URL uses https and matches the URL the browser uses, including any reverse proxy hostname |
| Browser loops between Metabase and Auth0 after you change settings | Stale session or changed settings not applied | Clear cookies for the Metabase domain, sign out of Auth0, then retry in a private window before changing anything else |
Questions buyers ask about Auth0 SAML for Metabase
Can I set up SAML with Auth0 on the open source edition of Metabase?
No. SAML single sign-on in Metabase requires the Pro or Enterprise plan, and Metabase's people and groups documentation lists SAML with documented setups for Auth0 among the features that need one of those plans. Open Source and Starter support Google sign-in and LDAP, so an organization that needs Auth0 sign-in must budget for a paid plan before the integration starts. Confirm the current plan entitlements on the Metabase pricing page before you commit, because plan contents can change.
How much does the Metabase plan needed for SAML cost?
Metabase's pricing page lists Pro at $575 per month, or $517.50 per month billed yearly, with the first 10 users included and additional users at $12 per month. Enterprise is priced by quote starting at $20,000 per year. Pro is the lower-cost route to SAML, and Enterprise suits organizations that need the higher tier's terms. Those figures come from the Metabase pricing page, so check them there for your currency, tax and billing terms. Metabase is the vendor that sets the license cost, while DeployOpen's fee for the configuration is separate and set by the written scope.
How long does an Auth0 SAML setup for Metabase take?
The Metabase configuration itself is short once the plan is in place, but the total duration depends on decisions made before the first setting is saved. The main drivers are how many Auth0 applications you connect, whether Auth0 already runs your workforce login, how groups are designed, and how many approval rounds your security team needs for the callback URL and attribute mapping. A single application with a clear group model moves quickly, while several applications and multiple tenants take longer. Ask for a timeline in the written scope that lists these dependencies separately.
What does the client need to provide for the engagement?
Plan for access and decisions, not only accounts. You will need administrator access to the Auth0 tenant and to the Metabase instance, a Pro or Enterprise license, the callback URL that Metabase uses for SSO, and a list of the Auth0 attributes and roles that should map to Metabase groups. Your security team should confirm the session, two-factor and password policy that applies once SSO is active, and someone must own the test accounts used during verification. Missing any of these items usually stretches the schedule more than the technical work does.
Can our internal team configure Auth0 SAML for Metabase alone?
Yes, a team with Auth0 administration experience and Metabase administration experience can complete the setup, because the steps are documented by Metabase and follow a fixed sequence. The harder part is usually the group design: deciding which Auth0 roles or attributes map to which Metabase groups, and how removals are handled. Teams that lack an identity engineer or that must pass a security review often bring in a partner for the design and verification steps. Whichever route you choose, agree on who owns the Auth0 application after go-live.
How does group design change the effort?
Group design is the largest variable in the effort. A small, stable set of Auth0 roles that map one to one onto Metabase groups is quick to test. Free-form attributes, nested business units, or groups that change often need mapping rules, cleanup of old mappings and more test cases to prove that users land in the right collections. Number of applications matters too, since each Auth0 application needs its own callback and mapping JSON, and any second Metabase instance repeats the work. Ask for the group inventory and the number of applications to be listed in the quote.
What should I request in a quote for Auth0 SAML work?
Ask for a written scope that names every deliverable: the Auth0 application type and callback configuration, the attribute mapping, the group mapping rules, the verification test cases, and the handover notes. Request the number of Auth0 applications and Metabase instances covered, the list of groups in scope, and what happens if the group model changes after sign-off. Also ask who handles the Metabase plan purchase, which is separate from the service fee, and whether ongoing support or a retest is included. DeployOpen agrees fixed scopes, deliverables and timelines in writing before work starts, so the quote follows from that document.
How a SAML login moves between a user, Auth0 and Metabase
The login starts when a user opens the Metabase URL and Metabase redirects the browser to Auth0. Auth0 authenticates the user and sends a SAML response back to the /auth/sso callback on your Metabase. Metabase then reads the attributes and group values in that response and creates or updates the user and the session. Check the callback URL, the attribute names in the mapping JSON and the group values at the boundary, because a mismatch there is the most common reason a login fails.
Browser, Auth0 and self-hosted Metabase exchange a SAML response at the /auth/sso callback.
How DeployOpen scopes and delivers Metabase SSO with Auth0
DeployOpen plans, configures and documents Metabase SAML SSO with Auth0 inside your own infrastructure, so your security and identity teams can review each setting before it goes live. Engagements are fixed-scope, with the Auth0 tenant, Metabase instance and group handling agreed in writing before work starts.
How we scope
- Confirm the Metabase plan includes SAML SSO before any configuration work begins, since SAML requires Pro or Enterprise.
- Record the Auth0 tenant, application type, callback URL ending in /auth/sso and the Metabase site URL that users will sign in to.
- Agree which Auth0 attributes and groups map to Metabase groups, and who approves changes to that mapping.
How we build
- Create the Regular Web Application and activate the SAML2 Web App add-on in Auth0, then paste and review the attribute mapping JSON.
- Configure the SAML settings in Metabase and test sign-in with a set of pilot accounts covering each group and role.
- Check that users who leave the identity provider lose access, and that group membership changes take effect as expected.
How we hand over
- Deliver a written configuration record covering callback URLs, mapping JSON, group rules, certificate locations and rollback steps.
- Provide a test log showing each pilot account, the groups it received and the result, for your security and compliance reviewers.
- Walk your administrators through certificate renewal, adding new groups and troubleshooting failed sign-ins before handover.
How we support
- Ongoing support, Metabase upgrades and periodic re-testing of SSO are available as retainers after handover.
- Re-verify the SAML configuration after each Metabase upgrade, since release changes can affect authentication settings.
- Review Auth0 tenant changes and certificate expiry dates on the agreed retainer schedule, and document each change.

