Choosing a Metabase data isolation method

Metabase offers several ways to limit what each person sees, and each one fits different data locations, SQL habits, caching needs and plans. This page explains how to pick the right method and what to confirm before you build.

On this page

Choosing a Metabase data isolation method starts with where your data lives

Pick the isolation method after you know where each person's data sits, not before. If different people must see different rows, columns or databases in a self-hosted Metabase, the choice comes down to where the data lives (one shared database, a set of customer or regional databases, or a mix), whether people write SQL against it, how important caching is to you, and which Metabase plan you run. The methods are row and column security, which filters or hides data inside a table for each group or user; impersonation, which runs queries as a database role that already holds the restrictions; database routing, which sends each user's queries to a different database; and locked parameters, which fix a filter value on a dashboard so viewers cannot change it. Teams usually need one of these when a single Metabase serves several business units, clients or jurisdictions that should not see each other's records.

Before you compare methods, confirm the plan. According to the Metabase pricing page, row and column level permissions and multi-tenant data segregation are included only in the Pro and Enterprise plans, not in Open Source or Starter. Starter is listed at $100 per month or $90 per month billed yearly with the first 5 users included, and Pro at $575 per month or $517.50 per month billed yearly with the first 10 users included. Open source cannot restrict data per user at all: the data permission for each group is fixed, so every person in a group sees the same tables. If your requirement is per-user isolation, the plan decision and the method decision are the same decision, and you should make both in the same review.

Write the requirement as a short table of data owners, data locations and access rules before you open the Metabase admin settings. Ask whether the sensitive data is in one database or several, whether the people who need isolation will build their own questions in the query builder or write native SQL, and whether dashboards must be cached for speed. Confirm each point with your data owners and with the current Metabase data isolation methods documentation, because the restrictions on each method change between releases. The sections that follow compare the methods in detail, and this framing tells you which of them are worth testing at all.

How each isolation method restricts data

Metabase offers four ways to narrow what a person sees once data is in the instance. They differ in where the rule is enforced, whether Metabase or the database applies it, and which plan includes it. Read each card for the condition that rules a method in or out, then match the method to where your data lives and whether people write SQL.

Row and column security

Row and column security applies a filter to each table's rows and hides selected columns for the groups you assign it to. It lets one shared table serve several audiences without copies of the data. The main condition is the plan: it is included only on Pro and Enterprise, so confirm your edition before you design around it. Check whether the table has a clear owner and stable columns, because every filter rule must be maintained as the schema changes.

Impersonation

Impersonation runs each person's queries as a database role that their user attribute maps to, so the database itself decides which rows and columns are readable. It works only where your database defines those roles and their privileges, and Metabase's own docs list which drivers support it. The main trade-off is caching: Metabase advises against impersonation when caching matters because cached results cannot be shared between roles. Decide that before you commit to this method.

Database routing

Database routing builds dashboards once on a router database, then sends each person's queries to a separate destination database. It fits a database per customer or per business unit, where each group's data sits in its own database. The main condition is a user attribute that names each destination. Metabase also disables features under routing, including automatic cache refresh, so review those losses and confirm your database drivers before you choose it.

Locked parameters

Locked parameters fix a dashboard filter to a value so the viewer cannot change it, which narrows what a shared dashboard shows. The condition to confirm is where your version supports them, and which surfaces, such as embedded dashboards, apply them. A locked filter does not replace data permissions, because a viewer may still reach the same data through saved questions or the query builder. Test each dashboard as a restricted user before you publish it, and compare the full behavior in the Metabase data isolation methods docs.

Which method fits your data, SQL habits and caching needs

This table compares the four isolation methods across where your data lives, whether people write SQL, whether caching matters and the plan you need. Read each row to find the method that matches your setup, then check the last column for what that method turns off. The main takeaway is that caching and isolation pull against each other, so decide on caching early.

MethodBest fit for data location and SQL habitsCaching and what it disablesPlan required
Row and column securityOne database where people view through the UI; SQL writers need care because restrictions depend on the query pathAutomatic cache refresh is unavailablePro or Enterprise
ImpersonationOne database with a database role per user or group; works for people who write SQL, as long as the warehouse enforces the roleAdvise against when caching matters; cached results cannot be shared between rolesPro or Enterprise
Database routingMany databases, such as one per customer; each person's queries go to their own destinationAutomatic cache refresh is unavailablePro or Enterprise
Locked parametersDashboards filtered by a value fixed in the link or embed; suits customer-facing views rather than internal explorationConfirm with Metabase docs how caching interacts with locked values in your versionCheck the plan for embedding in your setup
Database-side views or rolesAny layout; the warehouse enforces access, so it works even for Open Source installsCaching behavior follows the database user, so confirm grants per groupOpen Source (no Metabase license needed)
Your decision checkList where data lives, who writes SQL and whether dashboards must be fast at scale before choosingDecide caching early; switching methods later can change what users seeAsk your Metabase contact to confirm the plan against your full list of features

Decision paths by data location and query habits

When all data sits in one database and most people only view dashboards and saved questions, the simplest fit is usually group-based data permissions combined with collection permissions. Permissions are set per group and per table, so a team sees its own tables and nothing else. Row and column security is only needed when the same table holds rows that different people must not see. In that case the usual options are row filters, which require a paid plan, or a database view that the group is pointed at, which works on any plan but moves the logic into the database.

  • Start with table-level permissions: Restrict the All Users group first, then grant each team only the tables it needs.
  • Use database views for row filtering on open source: Create one view per audience in the database and grant access to the view instead of the base table.
  • Keep caching available: Group permissions and views do not disable automatic cache refresh, so dashboards can still be cached.
  • Reserve row and column security for shared tables: Use it only where the same table must be filtered per person and the plan includes it.

Illustrative example: a finance team and a sales team share one warehouse schema, and each team's dashboards read from views that expose only that team's rows.

Before choosing, confirm which plan you need for row and column security and whether your database team will own the views.

The decision path from data location to isolation method

The path starts with where the data lives, since a separate database per customer or tenant points toward database routing, while one shared database points toward row and column security, impersonation or a locked parameter. Next it asks whether people write SQL, because native SQL questions bypass some dashboard-level filters and need a database-side pattern. Then it checks whether caching matters, since Metabase advises against impersonation when caching is important. Finally it checks whether the plan includes Pro or Enterprise, which decides whether row and column security is available at all.

Decision path from data location to a candidate isolation method.

Why caching changes the isolation choice

Caching is the isolation factor most likely to surprise a team after go-live. Metabase advises against impersonation when caching matters, because cached results cannot be shared between roles. If ten analysts in the same group each run a dashboard under their own impersonated role, each role builds its own cache entry, so the second viewer gains little from the first viewer's query. The same logic applies to row and column security and database routing, since each person's permitted data changes the query that gets cached. Before you choose one of these methods, decide how much of your traffic is repeated, identical queries across many viewers and how much is truly per-person.

The trade-off is between per-user accuracy and dashboard speed. Row and column security, impersonation and database routing give each person the data they are allowed to see, but they also cut the cache hit rate and disable automatic cache refresh, so dashboards may wait on the warehouse more often and show results that are only as fresh as the last manual refresh. A shared dashboard with one set of filters and a single cache entry is usually cheaper to run than a per-person dashboard. Where a team needs both, consider separating the content: keep a cached, group-level view for broad metrics and reserve per-user isolation for detail views that carry sensitive rows.

Test this with your own numbers before you commit. Ask your Metabase administrators to list the dashboards with the highest viewer counts and the query runtimes they produce, then run the same set under a sample of impersonated or routed users and compare warehouse load and page times. Confirm the caching settings for your Metabase version in the caching documentation and record which dashboards depend on automatic refresh, since those will need a scheduled alternative under the stricter isolation method.

How to set up and verify your chosen isolation method

This sequence takes you from confirming your plan and identity source to a tested setup in which each group sees only the data it should. Each step ends with a check you can repeat after every change.

  1. Confirm the plan and edition

    Before configuring anything, confirm which isolation methods your plan includes. Row and column level permissions, impersonation and multi-tenant data segregation are included only in the Pro and Enterprise plans, not in Open Source or Starter, so an Open Source instance cannot apply these methods at all. Check the current plan details on Metabase's pricing page and record the plan in your change ticket. The step is done when the plan, and the methods it unlocks, are written down and approved by the data owner.

  2. Confirm the application database and identity source

    Confirm that the application database is PostgreSQL or MySQL rather than the embedded H2 database, since H2 is intended for demos. Then decide where user attributes will come from: SAML or JWT attributes sent by your identity provider, or attributes set manually in Metabase. Confirm that your identity provider can send the attribute you need, and that your plan supports that connection method. The step is done when you can name the attribute source for each isolation rule and the application database in use.

  3. Restrict the All Users group first

    Before creating any group, open the All Users group and remove data access it does not need, so that no user inherits broader access by default. Metabase groups add permissions together, so a permission granted to All Users applies to everyone, including members of tighter groups. Set View data and Create queries for All Users to the most restrictive level you intend to keep, then confirm this in the permissions view. The step is done when All Users shows no access to sensitive databases or tables.

  4. Create groups and data permissions

    Create one group per audience, then assign View data, Create queries and Download results per database and table for each group. Use the settings that match the isolation method you chose, so that tables meant for row or column controls are not opened to everyone at the database level. Record the expected result for one sample user in each group, such as which tables they should see and which rows they should be limited to. The step is done when every group's permissions match the written access matrix.

  5. Configure the chosen isolation method

    Apply the method you selected: row and column security filters, impersonation roles, database routing or locked parameters. Where the method depends on user attributes, set the attribute names exactly as your identity provider sends them, and keep the same naming convention across all rules. Note that automatic cache refresh is unavailable with row and column security, impersonation or database routing, so review your caching settings now. The step is done when the configuration is saved and a change record lists each rule and its owner.

  6. Test with accounts from each group

    Sign in as a test user from each group and run the same questions and dashboards that the group is meant to use. Include at least one user with the attribute value for each rule, and one user with no attribute value, to confirm the default behavior. Check that blocked tables are not visible, that row filters limit results, and that the SQL editor is unavailable where Create queries is off. The step is done when each test account's visible data matches its expected result from the access matrix.

  7. Compare results with the source database

    For a sample of questions, run the same filter directly against the source database using a read-only account, then compare row counts and key totals with what the test user sees in Metabase. Mismatches usually point to a wrong attribute value, a filter applied at the wrong level or a permission granted through another group. Repeat the comparison after any change to groups, attributes or database routing. The step is done when the counts match for every test account and the comparison is saved with the change record.

  8. Document and schedule retesting

    Record the final configuration, the test accounts, the expected results and the comparison outcomes in your access documentation. Assign an owner to repeat the tests after every upgrade, identity provider change or new table, since upgrades run application database migrations and can change how permissions are stored. Confirm the retest schedule with your security and compliance teams. The step is done when the documentation is stored with the access review evidence and the owner has accepted the retest duty.

Security and operational risks to plan for

Each isolation method moves risk to a different place: the default group, stored credentials, identity attributes, query logs or the database estate itself. The cards below name one risk each and the control that keeps it contained, so you can check them against your own design before go-live.

Broad access through All Users

Every Metabase user belongs to the All Users group, and permissions granted there apply to everyone, including people added later. If that group keeps View data access to a sensitive database, row filters, impersonation or routing set on other groups will not protect the data, because the broad grant still applies. Before you configure any isolation method, review the All Users group and block access to restricted databases and tables there, then confirm with a test account that is in no other group.

People and groups docs

Credentials for impersonation and routing

Impersonation and database routing both depend on database credentials that Metabase holds. An impersonation role or a router database user with broad read rights exposes every table it can reach, and those credentials sit in the Metabase application database and admin settings. Create dedicated, least-privilege database users for each role, store their passwords under your secret management process, and rotate them on a schedule your team can run without downtime.

Trust in identity provider attributes

Row filters, impersonation roles and database routing can read values from user attributes, and those values often come from SAML, JWT or LDAP sync. If an upstream attribute is wrong, empty or editable by the user, the person sees data they should not. Decide which identity provider attribute is the source of truth, restrict who can change it, and test with a sample of accounts covering each attribute value, including the case where the attribute is missing.

Audit of who queried what

Row and column security and impersonation change what a query returns, so a review of access needs to show which person ran which query under which role. Confirm which audit records your Metabase edition and plan keep, where query and login activity is written, and how long your logging platform retains it. Test the trail by running a query as a test user and checking that the record shows the account and the role you expect.

Caching that blurs access boundaries

Cached results cannot be shared between roles, which protects data from leaking across roles but reduces the benefit of caching. Plan for this trade-off by measuring how many dashboards would be affected and deciding whether slower loads are acceptable for restricted content. Automatic cache refresh is not available with row and column security, impersonation or database routing, so you need a plan for stale results on those dashboards.

Caching query results

Upkeep of per-customer databases

Database routing and database-per-customer designs multiply the work of every schema change, credential rotation, backup and upgrade test, because each database needs the same care. The recurring cost grows with the number of databases and is often underestimated during design. Ask any partner for a written estimate of the recurring tasks per database, and decide early whether your team can run that workload before choosing routing.

Questions buyers ask before choosing an isolation method

How much does it cost to add row and column security to Metabase?

Row and column security is not included in the Open Source or Starter plans. According to the Metabase pricing page, it is included in Pro and Enterprise. Pro is listed 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. Your cost depends on the plan you need, your user count and the number of users beyond the included seats. Your licensing quote follows from the plan you select, so ask Metabase for a written quote that matches your user count and any SSO, auditing or multi-tenant features you need. DeployOpen's implementation work is quoted separately from the written scope.

How long does a Metabase data isolation rollout take?

No fixed duration applies to every environment, so treat any timeline as something to scope, not assume. The main drivers are the number of databases and tables that need restriction, how many distinct access levels you define, whether user attributes already exist in your identity source, and how many test accounts you need to verify what each person sees. Caching requirements and whether SQL users need access also add design work. A written scope should list the isolation method per database, the attributes or groups involved, the test matrix and the review steps before anything reaches production.

What does our team need to provide for an isolation project?

Plan to provide access to the databases Metabase will query, a list of the data each group should see, and the user attributes or group memberships that will drive filtering, impersonation or routing. You also need the identity source that supplies those attributes, such as SAML or JWT on a Pro or Enterprise plan, and a set of test accounts that represent each role. Database-side access for a read-only Metabase user is usually required as well. Confirm each item with your data owners and identity team before the build starts, because gaps in attributes or test accounts are a common source of delay.

Can our internal team set up data isolation without a partner?

Yes, many teams configure these settings themselves, provided they have the right plan, administrative access to Metabase and database owners who can create the roles needed. The work that usually needs more time is design: deciding which method fits each data source, mapping attributes consistently, and testing each role's view of the data. Ask whether your team has someone who can write and review the database-side grants, and whether they can test every group before go-live. If not, an implementation partner can take on design, build, testing and documentation under a written scope.

What happens to caching when row and column security is enabled?

Metabase advises against impersonation when caching is important because cached results cannot be shared between roles. Automatic cache refresh is also unavailable with row and column security, impersonation or database routing. In practice, each role may see slower dashboards than a shared cached view, so plan performance expectations per dashboard and test them with realistic data volumes. Confirm the caching behavior for your Metabase version in the caching documentation before you promise response times to stakeholders.

Do SQL users still see restricted data?

Whether SQL users are restricted depends on the isolation method and the permissions you grant. Users who can write native SQL may be able to query tables or columns outside their filters if the underlying database grants allow it, so the database-side read-only user and its privileges matter as much as Metabase settings. Decide before rollout whether SQL access is limited to specific groups, and test a SQL query from each restricted role. Confirm the behavior for your chosen method in the isolation methods documentation, and test it rather than relying on the UI alone.

Which isolation method should we start with?

The right starting point depends on where the data lives, whether people write SQL, your caching needs and your plan. Row and column security suits filtering within one database, impersonation applies database roles per user, and database routing sends each person to their own database. Locked parameters can be a simpler option for some dashboards. List your data sources, your SQL user groups and your performance targets first, then compare methods against that list in a written design.

How DeployOpen works on this

DeployOpen starts by mapping where your data lives, who writes SQL, and how much caching your dashboards need, then picks the isolation method that fits those answers. The work is delivered in your own infrastructure as a fixed-scope engagement, with the permission model, tests and handover documented so your team can review and run it.

How we scope

  • Inventory the databases, tables and user groups that need different visibility before choosing a method.
  • Record whether people write SQL, since native queries change which isolation methods hold.
  • Confirm the Metabase plan and identity setup, because row and column security and impersonation require Pro or Enterprise.
  • Agree deliverables, timelines and tests in writing before any build work starts.

How we build

  • Configure group, data and collection permissions, starting by blocking access for the All Users group.
  • Implement the chosen method, whether row and column security, impersonation, database routing or locked parameters.
  • Plan caching behavior around the method, since automatic cache refresh is unavailable with some isolation methods.
  • Test what each sample user sees across groups, including attempts to query tables they should not reach.

How we hand over

  • Document the isolation design, the group and attribute mapping, and the reasons behind each choice.
  • Deliver test cases and results so your security and compliance teams can review the access model.
  • Run a walkthrough with administrators on adding users, changing filters and reviewing permissions.
  • Record the configuration in a form your team can maintain after the engagement closes.

How we support

  • Offer ongoing support, upgrades and continuous testing as a retainer after handover.
  • Retest the isolation model after Metabase upgrades or changes to identity providers and user attributes.
  • Review the design when you add databases, change plans or move from open source to a paid edition.
  • Confirm support terms and response expectations in the written scope before work begins.

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.