How user attributes drive Metabase permissions
Most teams reach for user attributes when the same dashboards must show different rows or different databases to different people. A user attribute is a named value attached to each Metabase user, such as a region, a business unit, a customer ID or a warehouse account, and Metabase reads that value at query time. Three features consume it. Row filters through sandboxing compare a column in a table with the user's attribute. Impersonation roles pass the attribute into a database role so the warehouse itself applies the restriction. Database routing uses the attribute to send each person's queries to the correct database. Row and column security is a Pro or Enterprise feature according to Metabase's pricing page, so confirm the plan before designing around it. The open source edition's limits are covered in the sibling topic on open source permissions limits.
Attributes can be set in two ways. An administrator can add them by hand in the user settings, which suits small groups and proofs of concept. For larger populations, the attributes can be passed from the identity provider at sign-in. SAML can carry user attributes from the identity provider to Metabase to power row and column security, and JWT or SAML can supply attributes for database routing. Check with your identity provider team which claims or assertions it emits, and confirm the attribute names match what Metabase expects before you write any filters. Naming is a design decision in its own right: pick one convention, such as lowercase snake_case with a prefix for the domain, and document it so that sandbox rules, routing rules and identity provider mappings all refer to the same key.
Testing matters more than configuration here, because a wrong attribute value silently shows the wrong rows. Build a small set of test accounts, each with a known attribute value, and record what each account should see for every dashboard and saved question. Include edge cases: a user with no attribute set, a user with two values, and a user whose attribute changes after sign-in. Run the checks again after each upgrade and after any change at the identity provider, because attribute claims often change without anyone telling the Metabase team. Ask your implementation partner or internal team to write the test matrix before the first sandbox goes live, and treat a failed test as a blocker rather than a known issue.
Where user attribute values come from
An administrator can add user attribute values directly on each person's account in Metabase. The values are then available to row filters, impersonation roles and database routing in the same way as values that arrive from an identity provider. This option needs no identity provider configuration, so it suits small teams, pilot rollouts and environments where the identity provider does not carry the attribute you need. The cost is ongoing administration: every new hire, transfer and departure becomes a manual edit, and a missed update leaves a person with the wrong access.
- Clear ownership: One administrator or a documented process owns each value, so reviewers can see who changed what.
- Simple testing: You can set a value, log in as a test account and confirm the result without touching the identity provider.
- Drift risk: Values in Metabase can diverge from the HR system or directory, and nothing corrects them automatically.
- Offboarding gaps: Removing a user from the identity provider does not clear attributes that were typed in by hand, so review the account as well.
- Scale limits: Manual entry works for a short list of users but becomes an error source as headcount and data sources grow.
Before you rely on manual values for access control, confirm with your security team how changes are approved and recorded, and whether those records meet your access review needs.
With SAML single sign-on, the identity provider can send user attributes in the assertion, and Metabase can use them to power row and column security. The values are refreshed each time a person signs in, so access follows the identity provider rather than a separate list. Attribute names and values must match what your row filters and routing rules expect, which means the identity provider team and the Metabase team have to agree on the names before the build starts. SAML single sign-on in Metabase requires a Pro or Enterprise plan, according to the Metabase people and groups documentation.
- Source of truth: Values come from the directory or HR-linked system that already governs access elsewhere.
- Refresh on sign-in: A change in the identity provider reaches Metabase at the next login, not instantly.
- Attribute mapping: The identity provider must release each attribute in the assertion, and the names must match exactly.
- Plan requirement: SAML sits on Pro or Enterprise, so the licensing decision comes before the design.
- Provider configuration: Confirm with your identity provider's administrators which attributes they can send and how they are sourced.
Check with your identity team whether the attributes you need are already populated for every user who will sign in, because a blank attribute usually means a user sees either no rows or the wrong rows.
JSON Web Token (JWT) single sign-on is a second route for passing attributes from an external system into Metabase. The Metabase documentation for database routing states that user attributes can be supplied through SSO with JWT or SAML, which makes JWT a practical option when your identity layer issues tokens that already carry the attributes. Like SAML, JWT single sign-on requires a Pro or Enterprise plan. The token issuer, the claim names and the signing setup all need to be agreed and tested before any access decisions depend on them.
- Claim design: The claim names the token carries become the attribute names you configure, so settle them early.
- Token contents: Confirm the issuer includes every attribute for every user, not only for the users who were tested first.
- Signing and trust: Verify how Metabase validates the token and who controls the signing keys.
- Expiry behavior: Confirm how long a token remains valid and how a revoked user is cut off.
- Plan requirement: JWT is available only on Pro or Enterprise, so budget for that tier if this route is chosen.
Ask the team that operates the token issuer to show a decoded sample token for a test user, and check that each attribute appears with the expected name and value.
Most teams decide between manual entry and single sign-on based on three questions: which plan they are on or can fund, whether the identity provider already holds the attributes, and how often those attributes change. Manual entry requires no plan upgrade for the attribute itself, but the access decisions it supports still depend on the features your plan includes. Single sign-on moves maintenance to the identity side and gives you one place to review access, at the cost of coordination between teams. Many organizations use the identity provider as the main source and keep manual entry only for exceptions, such as contractors or test accounts.
- Plan first: Confirm which row and column permission features and single sign-on options your plan includes before choosing a source.
- Existing data: Check whether the attributes you need already exist in the directory or HR system.
- Change frequency: Frequent changes, such as team moves, favor a source that updates automatically.
- Exceptions: Decide how non-employee accounts receive their values, because they are often outside the main identity flow.
- Mixed sources: If you combine sources, decide which one wins when they disagree and document it.
Ask your identity and security teams to write down the chosen source for each attribute, including the owner, the update path and the fallback when the source is unavailable.
Attribute source options and when each fits
This table compares the three ways to populate user attributes in Metabase: manual entry, SAML attribute passing and JWT attribute passing. Read each column for plan requirements, who keeps the values current and how changes reach Metabase. The main takeaway is that manual values suit small, stable groups, while SSO-driven attributes suit populations where identity changes often.
| Attribute source | Plan requirement | Who maintains the values | How changes propagate | Best-fit use case |
|---|---|---|---|---|
| Manual entry | Confirm against the current pricing page for your edition | A Metabase administrator edits each user's attributes in the admin settings | Only when an administrator changes the value, so stale values persist until someone edits them | Small, stable populations such as a handful of analysts with fixed regions or tenants |
| SAML attribute passing | Pro or Enterprise, according to the pricing page | The identity provider team, through claims or attributes on the SAML application | At each sign-in, so a changed attribute applies the next time the user logs in | Organizations where region, department or tenant is already held in the identity provider |
| JWT attribute passing | Pro or Enterprise, according to the pricing page | The team that issues the JWT, usually the application or identity platform owner | Each time a token is issued, so the value follows the token's contents | Setups where a central identity or application layer already signs tokens with user attributes |
| Ownership and audit trail | Not applicable | Manual values have one editor; SSO values depend on the upstream directory | Confirm how deprovisioned or moved users are handled in your setup | Choose the source that matches where your access reviews already happen |
Naming conventions that keep attributes maintainable
Agree attribute names, value formats and casing before anyone configures a row filter or a routing rule. The same attribute has to match in three places: the claim or field your identity provider sends, the user settings in Metabase, and the sandbox or database routing configuration that reads it. If one side spells department and another spells Department, or one side sends EU and another sends eu-west, the filter does not fail loudly. It returns the wrong rows or no rows, and the people who notice first are usually the ones who were supposed to be restricted. Write the convention down as a short register: attribute name, allowed values, case, who owns the source system, and which Metabase feature consumes it.
Decide early whether each attribute holds one value per user or several values. A single value keeps filters simple and easy to audit, but it forces a choice when someone belongs to two regions or business units. Multi-value attributes can express that situation, yet the way they are passed from the identity provider and the way the filter or routing rule expects them to be read must be confirmed in a test before rollout, since the two sides can handle lists differently. Confirm this with your identity provider administrator and against the current Metabase database routing documentation, which describes how attributes are supplied for routing.
The most damaging failure is a renamed claim. If an identity provider administrator changes a SAML attribute or JWT claim name during a directory cleanup, Metabase keeps running and users keep logging in, but the attribute no longer arrives. Filters that depend on it can then evaluate against an empty value, so the setup should be reviewed whenever the identity provider configuration changes. Keep the claim names in a change-controlled document, add the attribute check to your identity provider change process, and rerun the access tests for each restricted group after any change to claim names or mappings.
How to set up attribute-driven permissions step by step
This sequence takes a team from confirming that its Metabase plan and login method support user attributes to a tested row filter or database routing rule that returns only the right data to each person.
Confirm plan and SSO option
Check which Metabase edition and plan you run before designing anything. Row and column level permissions, database routing and SAML or JWT single sign-on are included only in the Pro and Enterprise plans, while Open Source and Starter do not include them. Confirm with Metabase's pricing page and your own contract. Confirm which identity provider you will use and whether it can send custom attributes. The step is done when a written note records the plan, the login method and the attribute source, and the owner has approved them.
Define the attribute model with the data owner
Work with the data owner to decide which attributes drive access, such as region, business unit, tenant or database name. Write each attribute with its exact key, allowed values, whether it is single or multiple valued, and a naming convention that is consistent across identity provider and Metabase. Record which tables or databases each attribute controls. The step is done when the data owner signs off a one-page attribute register that the engineers can build from.
Set attribute values in the identity provider or manually
Populate the attribute values for each user. For SSO, configure the identity provider to send the attributes in the SAML assertion or JWT claims, following Metabase's SAML documentation for how attributes are passed. For manual setups, enter the values in the user's account settings in Metabase. Use a small set of test accounts first. The step is done when a test user's attributes appear in Metabase's admin view with the expected values and no unexpected empty or duplicated entries.
Map attributes to a row filter or routing rule
Connect each attribute to the control it drives. For row-level security, point the attribute at the filter on the relevant table or column. For database routing, use the attribute that names the destination database, and confirm the router database and driver support it. Keep one mapping per attribute so changes stay traceable. The step is done when the mapping is written down and each attribute has exactly one control it affects.
Apply the configuration to a test group
Apply the row filter or routing rule to a dedicated test group, not to All Users or production groups. Confirm the group's data permissions and that the content it can open matches the design. Leave the broad groups unchanged until testing passes. The step is done when the test group is the only group carrying the new configuration and an administrator can list its members and attributes.
Verify what each test user sees
Sign in as one test user per attribute value and compare the results with the expected output in the register. Check returned rows, filtered totals and the connected database for routed queries. Repeat with a user who has no attribute value, and with a user holding conflicting values if your model allows that. Save the results as evidence. The step is done when every test user returns exactly the expected rows or database, and the empty-value case fails closed rather than showing all data.
Review the design before wider rollout
Have the data owner and security reviewer check the test evidence against the attribute register. Record any gaps, such as a dashboard that bypasses the filter or a cached result that shows the wrong rows, and fix them before widening the rollout. Confirm the method matches what is documented in Metabase's database routing guidance, which is the next read before you extend the design. The step is done when the reviewer signs off and the change record lists the tested attributes, groups and users.
How an attribute reaches a query
The attribute starts at the identity provider or an admin's manual setting, travels to Metabase as a claim during SSO login, and is stored on the user record. A sandbox row filter or a database routing rule then reads it and selects the rows or the database the query runs against. The trust boundary sits between the identity provider and Metabase, so check that only your identity provider can set the claim and that users cannot edit their own attributes.
Attribute flow from identity provider through Metabase to the warehouse, with the trust boundary marked.
Testing what each person actually sees
Build a test matrix before you trust any user attribute rule. Create one test user for each attribute value your row filters, impersonation roles and database routing depend on, then add edge cases: a user with the attribute missing, one with it empty, one with a value nobody planned for, and one with a value that differs only in letter case or whitespace. For each test user, write down the rows, tables and databases they should see and the ones they must not. Keep this matrix in version control or a document your data owners can review, because it is the evidence that the permission design does what it was meant to do. The matrix also tells you which unexpected values fail closed (no data) and which fail open (all data), and that difference matters more than any single pass or fail result.
Check each cell of the matrix in more than one place. Open the same question as each test user through saved questions, dashboards, and direct ad hoc queries in the query builder and in SQL where your users are allowed to write it. Compare row counts and sample values against what the matrix expects, not against what the same person sees in another tool. Then confirm that impersonation or routing does not leak data through other content: a saved question or model built by an administrator, a dashboard filter, a public or embedded link, a subscription, or a cached result can each show rows that the viewer's own rule would hide. Run each path as the restricted test user and look for rows from other tenants or regions, not only for errors. Keep a record of which saved content was checked, since new content added later can bypass a rule that was tested earlier.
Repeat the full matrix after every change that can alter identity or attribute delivery. That includes changes to the identity provider's attribute mappings or claim names, changes to the JWT or SAML configuration, edits to group membership sources, and any Metabase upgrade, since each release can change how permissions and sessions behave. Confirm your version plan with the Metabase version support page before scheduling a retest so the test run lands on the release you will run in production. Treat a failed case as a stop signal for the affected routes, not a ticket for later. Ask any implementation partner to hand over the matrix, the evidence from each run and the list of content checked, so your team can rerun the same tests without the original builders.
Security risks of attribute-based access
User attributes decide which rows, schemas and databases a person reaches, so an error in how they are set or passed tends to widen access without any visible failure. The cards below cover the places where that happens, from the identity provider to saved content, and what to check at each point.
IdP claim tampering or misconfiguration
If the identity provider sends a user attribute that a person can edit, or maps a claim to the wrong attribute, Metabase applies whatever value arrives. Confirm which attributes the identity provider controls, who can edit them there, and that only administrators can change the SAML or JWT mapping. Test with a user whose attribute should not match, and confirm the filter excludes their rows.
SAML authentication docsDefault values granting broad access
A default attribute value, such as a wildcard or an empty string that a filter reads as 'all', can give every user a broad view when a real value is missing. Decide which default is safe, which is none at all, and make sure the filter denies access when the attribute is blank. Review the defaults during each permissions change.
Attributes missing at login
A user whose identity provider record lacks the attribute may sign in with an empty or stale value, depending on how the SSO flow and Metabase's stored attributes interact. Ask the identity team which attributes are required for each population, and test a sign-in for an account without them. Confirm that the result is an error or a restricted view, not an open one.
Admin changes not audited
Changing a user's attribute, a group membership or a routing setting alters what that person sees, often without a ticket or record. Decide who may change attributes manually, where those changes are recorded, and how an access review reproduces the state at a past date. Check that your logs capture the change, not only the login.
Saved questions and cached results
A saved question or cached result built by one person can show rows another person should not see if the filter is not applied at query time for each viewer. Test each shared dashboard as a restricted user, including cached and subscribed output. Confirm that caching and subscriptions respect the same filter as live queries.
Secrets in SSO configuration
SSO setup involves client secrets, signing certificates and JWT keys, and copying them into notes, screenshots or shared configuration files exposes the path to every attribute decision. Store these values in your secret manager, restrict who can read the configuration, and rotate them on a schedule your security team sets. Confirm the procedure before go-live.
Questions teams ask before setting up user attributes
Do user attributes require a Metabase Pro or Enterprise plan?
Yes, in most setups. The pricing page places row and column level permissions in the Pro and Enterprise plans, and the people and groups documentation lists JWT and SAML, along with advanced attribute sync, as requiring Pro or Enterprise. Manual attributes set in the admin panel are a different case, because they still depend on the row and column permissions feature, which is also paid. Open source and Starter can still use database-side patterns, so confirm the plan against the features you need before you design around them. Ask your Metabase contact to confirm current plan boundaries in writing. The Metabase pricing page lists the plan contents.
How long does user attribute setup take, and what drives the time?
No duration is fixed for this work, so treat any estimate as something to confirm in a written scope. The main drivers are the number of attributes, how many tables need row filters, whether attributes come from a manual list or from SAML or JWT claims, and how many database routes you need. Each attribute needs a naming convention, a source of truth, and an owner who approves changes. Testing each group and each attribute value takes more time than the configuration itself. Ask for a breakdown by attribute source, table and test case, so you can see which part of the work sets the schedule.
What do we need from our identity and data teams?
The identity team must confirm which claims or SAML attributes the identity provider can send, their exact names and value formats, and how they change when someone moves teams or leaves. The data team must confirm which tables hold the filtered data, which database user Metabase connects with, and whether each target database can accept the routing setup. Both teams should agree on an owner for each attribute and a process for changing values. Without that agreement, filters drift after the first reorganization. Bring a list of attribute names, sample values for three or four test users, and the tables that need row filters to the first planning session.
Can our own team set up user attributes in-house?
Yes, if your team has administrators who can work in Metabase, an identity provider owner, and someone who can write and review the database-side logic. The work is configuration rather than custom code, but mistakes are silent: a wrong filter can show too much or too little data without any error. Teams that do this in-house usually write a written test plan before changing production settings and keep a review step for each new attribute. Consider a partner if you need a fixed scope, an independent review of access rules, or evidence for an assessment.
How should we test what each person sees before go-live?
Test with real accounts from each group and each attribute value, and record what each account sees on every filtered dashboard and table. Include edge cases such as users with no attribute value, users with two values, and users whose attribute changes during a session. Check that impersonated queries cannot reach tables outside the filter, and that saved questions and dashboards owned by one team do not leak another team's rows. Keep the test results with the change record so a reviewer can repeat them. Do this test again after each upgrade or identity provider change.
What changes when we upgrade Metabase?
Upgrades run application database migrations automatically, so back up the application database first. The documentation also advises reducing a cluster to a single node for major upgrades because of a migration lock, and upgrading release by release from versions older than 40. Rollback is done by restoring the pre-upgrade application database backup, which is the recommended path, or by running the migrate down command with the newer JAR. After any upgrade, rerun your permission tests, since the behavior of filters, impersonation and attribute sync can change between releases. Check the version support page before choosing a target release.
When should we bring in a partner for user attributes?
Bring in a partner when the access model affects regulated data, when several identity providers or databases must follow one attribute model, or when your team lacks time to test every combination. A partner can help you write the scope, build and test the configuration, and prepare evidence that a reviewer can follow. DeployOpen plans, implements, tests and documents self-hosted platforms inside your own infrastructure, and most engagements are fixed-scope with the scope and deliverables agreed in writing before work starts. DeployOpen does not issue audit reports or certifications, so independent assessors still review the result. A quote follows from the written scope.
Limits to confirm in your environment
User attribute features depend on plan, identity provider and database driver, and each one can change how filters and routing behave. The cards below list the questions to settle with Metabase or in a test instance before you commit to an attribute-based design.
Plan entitlement for each attribute feature
Row and column security, database routing and SSO sign-in are not all available on every plan. The pricing page places SSO and row and column level permissions in Pro and Enterprise, so an open source or Starter instance cannot enforce attribute-driven filters at all. Ask which plan covers each attribute feature you plan to use, and confirm that your user count and add-ons match the quote you were given.
Metabase pricingIdentity provider and claim formats
Attributes arrive through SSO only if your identity provider sends them in a format Metabase reads for your version. Confirm the claim or assertion names, whether multi-valued attributes such as a list of regions are passed as one value or several, and how the provider handles users who lack the attribute. Test with a real login from each identity provider in use, because a missing claim often fails silently and shows the wrong rows.
SAML docsDatabase drivers that support routing
Database routing sends each person's queries to a different destination database, and not every driver works with it. Check each warehouse or database driver in your stack against the current routing documentation before you design around it. Run one query per driver as a test, since a driver that connects but ignores the routed database name would return data from the wrong source.
Database routing docsCaching with filtered data
Cached results can be reused across users, which is a risk when the same dashboard shows different rows to different people. Ask how Metabase keys cached results when row filters or impersonation change, and whether a cached answer for one attribute value can be served to another. Test by loading a dashboard as two users with different attribute values, then reloading it after the cache window to confirm each user sees only their rows.
Interaction between attributes and groups
Attributes and group membership both shape what a person can see, and the combined result is not always obvious. Confirm which permission wins when a user is in a group with broader data access but carries a narrower attribute value, and whether group sync from the identity provider can overwrite attributes set by hand. Write the expected result for each combination of group and attribute value, then compare it with what a test account sees.
Attribute changes for active sessions
A change to a user's attribute may not apply until the person signs in again or the session refreshes. Ask how long an existing session keeps the old value, and whether removing a user from a group or changing an attribute revokes access immediately. Test by changing a value in an identity provider or admin screen, then checking the session that was already open, since a stale value can keep a person in data they should have lost.
What a DeployOpen engagement covers
DeployOpen plans and implements the user attribute design for Metabase inside your own infrastructure, including the attribute names, the values each identity source supplies, the group and sandbox or impersonation settings that consume them, and the database routing rules where those apply. The work runs against your environment: your Metabase instance, your identity provider, your databases and your change process. Most engagements are fixed-scope, so the attributes in scope, the identity sources you use (manual entry, SAML or JWT), the test cases, the deliverables and the timeline are agreed in writing before work starts. Ask for that written scope to state which plan your edition requires, since row-level permissions, SAML and JWT sign-in sit in the paid tiers listed on Metabase's pricing page.
The test phase is where attribute design gets proven. DeployOpen builds a matrix of people, groups and attribute values, then records what each person can see and query, including the blocked cases a reviewer will ask about, such as a user with a missing or mistyped attribute. The output is a findings report with fixes and a retest, plus the configuration and test evidence your compliance and security teams can use in access reviews. That evidence supports your review. It is not an audit report, an attestation or a certification, and an independent auditor or certification body makes any such determination. Confirm with your assessor which artifacts they expect, such as exported group settings, attribute source mappings and test run results, before the test plan is written.
After handover, the attribute source is the part most likely to drift. An identity provider team that renames a claim or changes a SCIM or SAML mapping can silently empty a filter for every user. DeployOpen can cover ongoing support and continuous testing under a retainer, so that changes on the identity side are retested against the same matrix. Ask any partner, including DeployOpen, to state in the quote who owns the identity provider changes, who runs the retest after each Metabase upgrade and how the evidence is refreshed for each review cycle.
How DeployOpen scopes and delivers Metabase permissions
DeployOpen approaches user attributes for Metabase as a permissions design problem before it is a configuration task. We agree which people see which rows, which databases they reach and how those attributes arrive from your identity provider, then build, test and document the result inside your own infrastructure. Engagements are fixed-scope, with the written scope set before work starts.
How we scope
- Written scope lists the attributes, row filters, impersonation roles and database routes that are in and out of the engagement.
- We map which attribute source applies, whether manual entry, SAML or JWT, and confirm your plan supports it.
- Naming conventions for attributes and values are agreed with your security and data owners before any build begins.
- We confirm which Metabase edition and which identity provider features are needed, so the quote reflects your actual setup.
How we build
- We configure attributes in the identity provider or Metabase admin settings and test each value against a sample user.
- Row filters, impersonation roles and routing rules are built from one agreed attribute model rather than per-user exceptions.
- Test accounts cover each group and edge case, including users with missing or conflicting attribute values.
- Changes are made in a non-production instance first, with the application database backed up before any shared change.
How we hand over
- You receive a written record of each attribute, its source, its allowed values and the content it controls.
- Test results show what each tested person can see, query and download, with evidence you can keep for review.
- Runbooks cover adding a new attribute value, onboarding a user and removing access when someone changes teams.
- Your team walks through the configuration and the test cases so they can repeat the checks after handover.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers after the initial engagement.
- Retesting after each Metabase upgrade confirms that attribute-based filters still apply as expected.
- Support can cover new data sources, new attribute values and changes to your identity provider configuration.
- Confirm with us which parts of the permissions model stay under your team's ownership after the engagement ends.

