Mapping identity provider groups to Metabase groups

Group mapping keeps who can reach which Metabase data aligned with your identity provider, but it depends on your plan and protocol. This page covers the supported methods, the build sequence and the failure points to plan for.

On this page

Why group mapping is the step that keeps Metabase access current

Once single sign-on works, the next question is who ends up in which Metabase group, and whether that answer changes when people move teams or leave. Group mapping is the piece that answers it. Instead of an administrator adding and removing people by hand in Metabase, the identity provider's group memberships are read at sign-in and translated into Metabase group membership. Access to databases, collections and dashboards is granted through Metabase groups, so a stale group membership is a stale permission. Without mapping, every reorganization becomes a manual cleanup task, and every missed change is a person who keeps access they no longer need.

For SAML, the mechanism is a user attribute, commonly named metabaseGroups, that the identity provider sends in the assertion, combined with the Synchronize Group Memberships setting in Metabase. Confirm the attribute name, the value format and how your identity provider emits multi-valued attributes before you configure anything, because a mismatch silently results in no mapped groups. Also check what Metabase does to groups when a mapping is removed, since the removal flow offers a choice about the groups that were previously mapped. Decide that choice before you test a removal, not during an incident. The supported methods differ by protocol and plan: group sync for OIDC, LDAP and SCIM is not handled the same way, and the advanced LDAP group sync and SCIM provisioning require a Pro or Enterprise plan. Check the current Metabase SAML documentation and the pricing page for your protocol before you design the model.

SCIM is the other route: a provisioning protocol that lets the identity provider create, update and deactivate users and groups in Metabase ahead of sign-in, rather than relying only on attributes sent at login. It is worth evaluating if you need deprovisioning to happen on a schedule you control, but it adds an integration to build and operate. The practical first step is to list which identity provider groups should grant Metabase access, name them consistently, and map each one to a Metabase group that already has the intended data permissions. That inventory is the input to every later decision in this topic.

Which group sync method fits SAML, OIDC, LDAP and SCIM

Metabase offers four routes for carrying identity provider groups into Metabase groups, and each one depends on a different plan and a different source of truth. The right choice follows from which directory already holds your group membership and which plan your organization pays for. Confirm exact attribute names and settings against your Metabase version before you build anything.

SAML group mapping through a user attribute

SAML sync reads group membership from an attribute in the assertion, commonly named metabaseGroups, and maps those values to Metabase groups. The Synchronize Group Memberships toggle decides whether Metabase adds and removes memberships on each login. This route requires Pro or Enterprise. It suits organizations whose identity provider already holds the group model and already issues a SAML attribute statement. Check the attribute name and the behavior when a mapping is removed.

SAML docs

OIDC and JWT group claims

OIDC and JWT routes pass group information as a claim in the token that Metabase receives at sign-in. The claim name and its format come from your identity provider, so the mapping depends on how that provider's groups are configured. This route requires Pro or Enterprise. It suits teams running Keycloak or another OIDC provider that can emit group claims. Confirm which claim carries groups and whether the provider sends nested or full group paths.

LDAP group sync

Basic LDAP sign-in is available on Open Source and Starter plans, but advanced LDAP group and attribute sync requires Pro or Enterprise. LDAP sync reads group objects from Active Directory or OpenLDAP and maps them to Metabase groups. It suits organizations where on-premises directory groups are the authoritative record. Confirm how nested groups are resolved, which search base Metabase queries, and how users removed from a group are handled at the next sync.

SCIM provisioning

SCIM provisioning lets an identity provider create, update and deactivate Metabase users and groups through an API, rather than waiting for a login to change membership. It requires Pro or Enterprise. It suits organizations that need group changes to take effect before a user signs in, such as offboarding or access reviews. Confirm which provisioning features your identity provider supports, and plan how SCIM and login-time mapping will not overwrite each other.

What you need before enabling group mapping on Metabase

Confirm the plan first. Group mapping from SAML, OIDC or LDAP groups depends on SSO-based authentication and advanced LDAP group sync, and the researched plan details place both in the Pro and Enterprise plans, not Open Source or Starter. Open Source and Starter support Google sign-in and basic LDAP, so a team on those plans cannot map identity provider groups without changing plans. Check the current plan comparison on the Metabase pricing page and confirm with Metabase which features your edition includes before you design anything else.

Prepare the identity provider side before touching Metabase. Decide which groups or attributes will carry Metabase access, such as a dedicated attribute like metabaseGroups for SAML, and confirm that every group name is stable, unique and populated for the users who need access. Ask whether nested groups, renamed groups and users outside the target directory will appear in the assertion or LDAP results, because each of these changes what Metabase receives. Test the claim with a small set of accounts first.

Use PostgreSQL for the application database. Metabase ships with an embedded H2 database that suits demos only, and the production recommendation is PostgreSQL (MySQL 8.4.0 or MariaDB 10.6.0 and later with utf8mb4 are also supported). Group memberships and mapping settings live in that database, so an H2 instance needs a migration first, using the migration guide, before mapping work goes live. Assign one named administrator who owns the mapping rules, approves changes and holds the rollback decision.

How to configure SAML group mapping in Metabase step by step

This sequence takes you from confirming your Metabase plan to proving that a user signing in through SAML lands in the Metabase groups your identity provider group should grant. Each step ends with a check so you can catch a mismatch before real users depend on it.

  1. Confirm the plan supports SAML and group sync

    Before changing anything, confirm that your Metabase instance is on a plan that includes SAML. According to the Metabase pricing page, SSO is included only in the Pro and Enterprise plans, and advanced group sync is also listed under those plans in the people and groups documentation. Your Metabase administrator should check the plan in the admin settings and confirm it with your Metabase account contact if the instance was licensed through another channel. The check is done when the plan is recorded in your change ticket and the SAML option is visible in the admin settings.

  2. Choose the identity provider groups that map to access

    Work with the identity provider owner and the Metabase administrator to pick the groups that should grant Metabase access, such as a group for analysts and a separate group for administrators. Keep the list short and name each group after the access it grants, not after a team that may change. Record each group name exactly as it appears in your identity provider, since the match is made on that value. The check is done when you have a written list of identity provider group names paired with the Metabase group each one should populate.

  3. Expose group membership as the metabaseGroups attribute

    Configure the SAML application in your identity provider so the assertion sent to Metabase includes a user attribute named metabaseGroups that carries the group names from the previous step. Most providers let you add an attribute statement that pulls values from the user's group membership, and you should filter that statement so only the Metabase groups are sent, not every group in the directory. Confirm the attribute name matches the one Metabase expects, because a misspelled name will silently produce no group membership. The check is done when a SAML response captured from a test sign-in shows the metabaseGroups attribute with the expected values.

  4. Enable Synchronize Group Memberships in Metabase

    In the Metabase admin settings for SAML, turn on the Synchronize Group Memberships toggle so Metabase reads the metabaseGroups attribute on each login and updates the user's groups to match. Save the settings and keep the SAML configuration from the identity provider in place. Be aware that with this toggle on, Metabase manages group membership for mapped users, so manual group changes made inside Metabase may be overwritten at the next sign-in. The check is done when the toggle shows as enabled after the settings are saved and reloaded.

  5. Create mappings from attribute values to Metabase groups

    In the Metabase admin settings, create one mapping for each identity provider group name, pairing the exact attribute value with the Metabase group it should populate. Check spelling and letter case against the values captured in the SAML response, because a mapping that does not match will grant no access. Review the mapping list with the Metabase administrator and a second reviewer before saving. The check is done when every mapping on your written list appears in the admin settings with the correct value and target group.

  6. Test with one user from each group

    Choose one test account from each identity provider group and have the user sign out of Metabase, clear any existing session, and sign in again through SAML. After each fresh login, the administrator should open the user's detail page in Metabase and confirm that the expected groups are present and that no unexpected groups appear. Repeat with a user who belongs to no mapped group to confirm the access that user receives is the one you intended. The check is done when every test account shows the expected group membership after a fresh login.

  7. Document the sequence and the removal rules

    Record the final mapping table, the attribute name, the toggle state and the test results in your configuration record. Note what Metabase does when a mapping is removed, since the SAML settings offer a choice about what happens to the groups that were populated by that mapping, and decide that choice before you need it. Agree with the identity provider owner who approves changes to group names, because renaming a group in the provider will break its mapping. The check is done when the record is stored with the team that operates Metabase and both administrators have reviewed it.

How identity provider attributes map to Metabase groups

This table lists each field that links an identity provider record to a Metabase user or group, along with the sync direction and the team that owns it. Read it before building mappings so that matching keys, group names and ownership are agreed up front. Exact labels and toggles must be confirmed in the Metabase admin screens for the version you run.

Mapping elementWhat it carriesSync directionOwner
User identifierStable subject or user ID from the provider, used to recognize returning usersProvider to Metabase at sign-inIdentity team
Email addressLogin email used to match or create the Metabase user accountProvider to Metabase at sign-in and provisioningIdentity team
Group attributeAttribute such as metabaseGroups or an OIDC groups claim that lists the user's provider groupsProvider to Metabase at each sign-inIdentity team with the IdP administrator
Group name mappingProvider group name paired with the exact Metabase group it should populateProvider to Metabase, applied on sign-inAnalytics platform owner
Synchronize group memberships toggleControls whether Metabase adds and removes memberships based on the attributeProvider to MetabaseAnalytics platform owner
Mapping removal behaviorChoice of what happens to users already in a group when its mapping is deletedMetabase onlyAnalytics platform owner with data governance
Manually assigned Metabase groupsGroups added by a Metabase admin that the provider does not manageMetabase only (not overwritten by sync)Analytics platform owner
Data access permissionsData and collection permissions attached to each Metabase group, which the mapping inheritsMetabase onlyData governance owner

How a group claim travels from the identity provider into Metabase

The flow starts when a user signs in at the identity provider, which returns a SAML assertion carrying a user attribute such as metabaseGroups. Metabase reads that attribute at login, applies the mapping rules, and updates the user's group membership. Permissions then decide which data the user reaches. The trust boundary sits where the assertion crosses into your self-hosted Metabase, so check the attribute name, the group values, and the Synchronize Group Memberships setting on both sides.

Group attributes flow from the identity provider through Metabase mapping rules to permitted data.

How to remove a mapping without locking users out or leaving stale access

Removing a group mapping in Metabase is not a single switch. When you delete a mapping, Metabase asks what should happen to the Metabase groups that mapping was populating, and the choice you make determines whether users keep access, lose it, or keep access that no longer matches any identity provider group. Decide that outcome before you touch the mapping. Confirm the exact option names and their wording in your Metabase version, because the labels change between releases and the SAML documentation is the place to check them, starting with the Metabase SAML docs.

Work in a fixed order. First, inventory which users currently hold the mapped Metabase groups, and record which of them also belong to other groups that give them data access. Second, decide the outcome for each group: keep the memberships as they are, clear them, or retain them as manually managed. Third, change the assignment in the identity provider so the users or groups you intend to remove are no longer sent with the mapped attribute, and let the next login or sync reflect that. Only after that, remove the mapping in Metabase. Removing the mapping first is the common route to lockout, because users who still need access lose it on their next sign-in while their identity provider still treats them as members.

Verify before you close the change. Sign in with a test account in each affected group, using the same identity provider path your users take, and confirm that its collections, data permissions and admin rights match the decision you recorded. Check a user you expect to lose access as well as one you expect to keep it, since stale access is usually found on the account nobody remembered. Keep the inventory and the test results with the change record so an auditor or colleague can see what was removed, who was affected and how it was confirmed.

Security controls that keep group sync from over-granting access

Group sync is only as safe as the groups it copies and the people who can change the mapping. The cards below cover the design, administration and evidence controls that stop an identity provider change from quietly granting Metabase access nobody approved.

Design groups for least privilege

Map only the identity provider groups that correspond to a Metabase access role, and avoid broad groups such as all staff or every contractor. Each mapped group should answer one question: which data, collections and capabilities does this population need? Review the mapped group list at each access review, and remove any group that no longer has a documented purpose. Keep the mapping list short so a reviewer can read it in one sitting.

Restrict who can edit mappings

Decide which Metabase administrators can change group mappings and synchronization settings, and keep that group small. Changing a mapping can add or remove access for many users at once, so it deserves the same review as a permission change. Confirm with your identity team who owns the identity provider groups themselves, because a person who can add users to a mapped group in the identity provider can also gain Metabase access.

Review admin groups separately

Treat any mapping that grants Metabase administrator rights as a separate control from ordinary analyst or viewer mappings. Keep administrator membership out of broad identity provider groups and require a named approver for each change. Check at every review that no user has administrator rights through an inherited mapping they no longer need.

Log mapping and membership changes

Record who changed a mapping, what the mapped groups were before and after the change, and which removal option was chosen when a mapping was deleted. Capture membership changes that sync produces as well as manual edits. Confirm which of these events your Metabase edition and logging stack retain, because usage analytics and auditing are included only in the Pro and Enterprise plans.

Confirm data permissions enforce access

A group name does not restrict data by itself. Test that each synchronized group has the intended data, collection and database permissions in Metabase, and that a test user from each group sees only the expected tables and dashboards. Run this test after every mapping change, since a group that inherits broad permissions from an older setup can expose data the name suggests it should not reach.

Why group membership in Metabase does not match the identity provider

This table lists the failures that most often leave Metabase group membership out of step with the identity provider, with the cause and fix for each. Work through the rows in order, because several symptoms look identical from the user's side. Verify each fix against your identity provider's assertion or token and the Metabase logs before you assume the mapping itself is wrong.

SymptomLikely causeFix to verify
Users land in no mapped groupsThe group attribute is missing from the SAML assertion or OIDC tokenInspect a sample login response in your identity provider and confirm the attribute name matches the one Metabase expects, such as metabaseGroups, character for character
Groups never update after loginThe Synchronize Group Memberships toggle is offTurn the toggle on in the Metabase authentication settings, then have a test user sign in again and check their group list
Some users are mapped and others are notGroup names differ in case, spelling or whitespace between the provider and MetabaseCompare the exact strings in the provider's group claim with the Metabase group names, and correct the one that differs
Users keep old access after a mapping is removedRemoving a mapping does not by itself remove existing memberships, and the removal choice was left at its defaultChoose the removal option deliberately, then confirm on a test account that the expected groups were added or removed
Mapping settings are present but ignoredThe plan does not include advanced SAML, OIDC or LDAP group syncCheck the Metabase pricing page and your plan before troubleshooting further, since these features require Pro or Enterprise
Change not visible for a userThe user has not signed in since the provider change, so Metabase has not received new group dataAsk the user to sign out and sign in again, then review the Metabase logs for the login event and group update

Questions buyers ask about Metabase group mapping

Does group mapping from an identity provider work on the Metabase open source plan?

No. Syncing identity provider groups to Metabase groups over SAML or OIDC requires the Pro or Enterprise plan, according to Metabase's people and groups documentation. Metabase's Open Source and Starter plans support Google sign-in and LDAP, but advanced LDAP group and attribute sync also requires Pro or Enterprise. SSO itself is included only in Pro and Enterprise, so the license decision comes before any mapping design. Confirm current plan terms on the Metabase pricing page before you commit, because the plan that includes a feature determines whether the design is possible at all.

How does SCIM differ from attribute-based group mapping in Metabase?

Attribute-based mapping reads group names from a login assertion each time a user signs in, so membership updates when that user next authenticates. SCIM is a provisioning protocol: the identity provider pushes users and group memberships to Metabase ahead of login, which keeps accounts current even for people who have not signed in recently. Metabase lists SCIM provisioning as a Pro or Enterprise feature. Ask which model your identity provider supports well, how deprovisioning is handled, and whether you need both a login-time sync and a provisioning feed.

How long does setting up Metabase group mapping take?

No fixed duration applies, because the time depends on how clean your group model already is. The main drivers are the number of identity provider groups that need a Metabase equivalent, whether group names must be renamed or nested, how many environments (test and production) you run, and how many teams must approve the mapping rules. A pilot with a small group set is usually quicker to verify than a full migration of every existing group. Ask any partner for a timeline tied to a written scope rather than a generic estimate.

What does the team need to provide before group mapping work starts?

Gather the identity provider admin access needed to read and configure the application, the list of groups that should map to Metabase groups, and the intended permission model for each Metabase group. You also need a test Metabase instance, a named owner for the identity provider configuration, and written approval rules for who may add or remove mappings. For SAML, have the attribute name you plan to use, such as metabaseGroups, agreed with the identity provider team. Missing decisions about group ownership are the most common reason work stalls.

Can an internal administrator set up group mapping without a partner?

Often yes, if your team already runs Metabase and the identity provider and can test in a non-production instance. The work involves configuring the SSO connection, defining an attribute that carries group names, creating mappings, and deciding what happens to mapped groups when a mapping is removed. The skills that matter most are identity provider administration, a clear group design, and disciplined testing of sign-in and removal cases. A partner adds value when the group model is contested across teams or when audit evidence for access reviews must be prepared.

What should we ask for in a written quote for Metabase group mapping?

DeployOpen prices each engagement from a written scope, and does not publish a price list. Ask for the list of identity provider groups in scope, the Metabase plan assumed, the protocol (SAML, OIDC or LDAP), whether SCIM is included, the test and production environments covered, and the verification steps for sign-in, group changes and removed mappings. Ask also what is handed over, such as runbooks and configuration records, and whether post-launch support is a separate retainer. Compare quotes on these items, not on headline effort alone.

What goes wrong when a group mapping is removed?

Removing a mapping can leave users in Metabase groups they should no longer hold, or strip access from people who still need it. Metabase's SAML documentation says removing a mapping gives you a choice about what happens to the groups that were mapped, so the option you pick must match your access policy. Test removal in a non-production instance with a known set of users before changing production. Record who approved the change and keep the before and after membership lists for your access review.

What a group mapping engagement covers from scope to retest

A group mapping engagement starts with a written scope agreed with your identity team before any configuration changes. DeployOpen works through which identity provider groups should control Metabase access, which Metabase groups they map to, whether membership should be removed when a user leaves a mapped group, and who owns each mapping after handover. The scope also records the protocol in use (SAML, OIDC or LDAP), the identity provider, and the Metabase plan, because group sync for SAML, JWT, OIDC, advanced LDAP sync and SCIM requires Pro or Enterprise. Confirm that plan requirement against the Metabase pricing page before the scope is signed, since it decides whether a mapping can be built at all on your instance.

Implementation happens in your own infrastructure and identity tenant, using test users and a staging Metabase instance first. The build covers the attribute or claim that carries group names, the Synchronize Group Memberships setting, the mapping rules themselves, and the behavior chosen for removed mappings. DeployOpen then tests the flows that matter to your access review: a user added to a source group gains the expected Metabase group on next login, a user removed from it loses access, an unmapped group has no effect, and a removed mapping leaves permissions as the chosen option specifies. Test results are recorded against the agreed scope, and any gaps are fixed and retested before the work is closed.

The deliverables include the written mapping rules, a runbook for adding or retiring a mapping, a rollback note for the removal choice, and a short checklist for the identity team to run after identity provider group changes. Timelines are set in the written scope and depend on the number of groups, the protocol, and how many environments need testing, so ask for the timeline and its assumptions in the quote rather than accepting a generic figure. Ongoing changes to mappings can be covered by a retainer if your group structure keeps changing.

How DeployOpen scopes and delivers Metabase group mapping

DeployOpen plans and builds identity provider group mapping for self-hosted Metabase inside your own infrastructure, starting from the group model your identity team already maintains. Each engagement is fixed-scope, with the mapping rules, test cases and handover material agreed in writing before work begins.

How we scope

  • We inventory the identity provider groups, attributes and Metabase groups that the mapping must connect, with owners named for each.
  • The written scope states which protocol applies (SAML, OIDC or LDAP), which Metabase plan is in use, and whether mapping is one-way from the provider.
  • We confirm which removal behavior your policy requires for groups that are unmapped, and record it as a scope decision before build.

How we build

  • We design the attribute or claim format, such as a group attribute like metabaseGroups, and document the naming convention for each mapping rule.
  • We configure the mapping in a non-production Metabase instance, enabling the group synchronization setting and testing users in several memberships.
  • We test added, removed and renamed groups, users with no groups and users who belong to groups that have no mapping, recording each result.

How we hand over

  • You receive a mapping reference listing each identity provider group, its Metabase group, the permissions it grants and its owner.
  • Runbooks cover the steps to add a mapping, remove one safely and verify sync after an identity provider change, written for your administrators.
  • We walk your identity and analytics administrators through the test evidence and the removal choices so they can operate the mapping without us.

How we support

  • Ongoing support, Metabase upgrades and continuous testing are available as retainers, so mapping changes can be reviewed as your groups change.
  • Changes to mappings after handover follow the same scope, test and documentation steps as the original build.
  • Ask any provider to confirm, in writing, which group sync features your Metabase plan includes before you agree on scope.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.