Metabase embedding

Embedding puts Metabase dashboards and questions inside your product or portal. This page explains which embedding type and authentication model fit, which plan each requires, and how to build and verify it in your own infrastructure.

On this page

Metabase embedding: which option fits your product and plan

If your product or portal team wants analytics shown to customers or staff inside your own application, guest embedding works on the free edition, but any embed that passes the signed-in user's identity through single sign-on requires a Pro or Enterprise plan. Metabase offers four embedding routes: modular embedding (individual charts and dashboards placed inside your pages), full app embedding (the Metabase interface itself, shown inside your product), public links (anyone with the URL can view the content), and static embedding, which is deprecated and should not be chosen for new work. The routes differ in who sees the content and how identity reaches Metabase, so the choice follows from your audience. Customer-facing views usually call for guest or signed embedding, while staff views inside an internal portal may need SSO-based identity so that permissions follow each person's group membership. Check the current options in the Metabase embedding introduction before you commit to a design.

The work is harder than it looks because embedding inherits your data permissions. Every embedded question runs against the application database and data sources as a specific identity, so the design has to answer which data each viewer may see, how row and column restrictions are applied, and how tenant data stays separated. Row and column level permissions and multi-tenant data segregation are part of the Pro and Enterprise plans, so a guest embed that needs per-customer filtering may force a plan decision before any build starts. Confirm with Metabase which features your chosen plan includes at the time of purchase, and plan for a test of each embedded view with accounts from different groups and tenants before go-live.

Plan the identity flow early, because it determines the plan you need, the signing code your application must run, and the support load later. Ask your team to list every audience, the data each should see, and whether the viewer already signs in to your product. Then compare that list against the plan requirements in the Metabase pricing page. Costs follow the same split: a guest embed on the free edition carries hosting and engineering time only, while a Pro or Enterprise subscription adds recurring license fees on top. Quotes should separate the one-time build of the signing layer and permission model from the recurring subscription and infrastructure costs.

Components and settings involved in embedding

Embedding Metabase touches more than one system. The instance, its application database, the admin embedding settings, a signing key, the host application's code, and the identity provider and permissions all have to agree before a viewer sees a chart. Each card below is one part your team will own or verify.

Metabase instance and application database

The Metabase JAR runs the embedding endpoints, and it stores users, collections, saved questions and embedding settings in its application database. The JAR is open source under the AGPL, while the commercial editions are licensed under the Metabase Commercial Software License (MCL), so confirm which edition and license apply to your deployment. Embedded dashboards are only as available as this instance, so check where the application database runs and who can back it up.

Application database docs

Embedding settings in the admin panel

The admin panel controls whether embedding is switched on, which embedding types are allowed, and which dashboards and questions are published for embedding. Review these settings after every upgrade and before go-live, because they decide what the host application is permitted to request. Keep a written record of who can change them.

Signing secret or key for tokens

Guest and SSO embedding rely on a signed token that the host application creates and Metabase verifies. The secret or key is a credential, so store it in your secrets manager, restrict who can read it, and plan a rotation procedure that updates the host and the Metabase settings together. A leaked signing key lets anyone mint tokens for the embedded content.

Host application embed code

The host application contains the modular embedding SDK or the iframe code that loads Metabase content in your product or portal. Your developers build the token request, the signing step and the content placement, and they decide which dashboard or question IDs and parameters the page passes. Test the page for each user role, because the embed only shows what the token and permissions allow.

Identity provider for SSO embedding

Where embedding uses SSO, the identity provider authenticates the viewer and passes identity or attributes that Metabase maps to users and groups. SSO-based embedding requires Pro or Enterprise, and the identity provider's group and attribute claims determine what each viewer can see. Confirm the claim names and the mapping with the identity team before testing.

People and groups docs

Collections and permissions for viewers

Collections and data permissions define the content and rows that embedded viewers can reach. Place only the dashboards and questions meant for external audiences in dedicated collections, and grant the embedding identities the narrowest access they need. Review these permissions with the data owners, since a dashboard that works for internal analysts can expose more data once it is embedded.

Choosing between modular, full app, public and guest or SSO embedding

This table compares Metabase's embedding options by when each fits, the plan it needs, and who carries the operational work. Read the rows as a sequence: decide the authentication model first, then the embed type, then check the static option only if you already run it.

OptionWhen it fitsPlan requiredOperational cost
Modular embeddingIndividual charts or dashboards placed inside your own pages, with your app controlling layout and navigationGuest auth works on all plans; SSO-based modular embedding requires Pro or EnterpriseYou own the signing endpoint that issues tokens and must keep embed parameters aligned with your data model
Full app embeddingYour users need the full Metabase experience (browsing, questions, dashboards) inside your portalGuest auth works on all plans; SSO-based full app embedding requires Pro or EnterpriseHigher surface area: you must confirm which navigation, collections and settings users can reach and test them
Public linksAnonymous sharing of a single question or dashboard where the content is safe for anyone with the linkAvailable on open source edition; confirm current availability on your planAnyone with the link can view the content, so review what data it exposes and revoke links when they are no longer needed
Static embedding (deprecated)Only for existing builds that already run on it; not a target for new workConfirm current plan availability with Metabase before relying on itPlan a migration to modular or full app embedding, since existing builds will need rework on that path
Guest authenticationExternal users who should see only what you explicitly pass in, with no Metabase account per viewerWorks on all plans, including open sourceYour application decides which data each viewer sees through signed parameters, so test every parameter value you accept
SSO-based authenticationYour users already sign in through your identity provider and should see content under their own Metabase permissionsRequires Pro or Enterprise for all SSO-based embeddingLicensing cost per plan, plus identity provider setup and group mapping to Metabase permissions that you maintain

How to build a Metabase embed from first token to production

This sequence takes an embed from a plan and embedding-type decision to a staging deployment that serves only the right content to the right viewers. Each step closes with a check you can run before moving on, so the result is verified access rather than a page that merely renders.

  1. Confirm the plan and embedding type

    Decide which embedding type fits the product before any build work starts. Guest authentication works on every plan, including Open Source, while all SSO-based embedding requires Pro or Enterprise, according to Metabase's embedding documentation. Check the current plan details on the Metabase pricing page, and confirm with Metabase which modular, full app or public option matches your viewers. Do not use the deprecated static embedding for new work. The step is done when a written decision names the plan, the embedding type and the authentication method, and someone outside the build team has signed off on it.

  2. Prepare a production application database

    Stand up PostgreSQL as the Metabase application database instead of the embedded H2 database, which Metabase ships for demos. Your platform or database team owns this, with credentials kept out of source control and backups configured before the first embedded user logs in. Metabase also supports MySQL 8.4.0 or MariaDB 10.6.0 and later with utf8mb4. The step is done when Metabase starts against the new database, a backup restores to a scratch instance, and the team has recorded the connection settings in its secrets store.

  3. Build the collection and content to embed

    Create a dedicated collection for the embedded questions and dashboards, separate from internal analyst work. Build each question against the data source it needs, then group the dashboards that the product will display. Keep filters and parameters simple at this stage, because each one becomes a value the host application must pass. The step is done when every embedded question runs correctly in Metabase as an admin, and the collection contains nothing an external viewer should not see.

  4. Configure the embedding secret or SSO

    For guest embedding, enable embedding in the Metabase admin settings and generate the embedding secret key, then store it in your secrets manager, not in front-end code. For SSO-based embedding on Pro or Enterprise, configure the identity provider and confirm how user attributes reach Metabase. Record which dashboards and questions each embedding type exposes. The step is done when the admin settings show embedding enabled for the intended objects only, and the secret is accessible to the signing service and nowhere else.

  5. Build the host-side token or SDK integration

    Your application server signs a short-lived token that identifies the resource and the parameters for the current user, then passes it to the embed in the browser. The host must generate tokens only after its own authentication and authorization checks pass. Validate the token's resource ID and parameters on the server side, so a user cannot change a parameter value in the browser to view another customer's rows. The step is done when a signed token loads exactly one saved question in a local test page, and an unsigned or altered token is rejected.

  6. Map viewers to permissions and attributes

    Decide how each host user maps to the data they may see. For guest embeds, the signed parameters and the database permissions define the boundary, so use least-privilege database credentials and row-level restrictions where your plan supports them. For SSO embeds, map groups or attributes to Metabase permissions. Row and column level permissions, multi-tenant data segregation, and usage auditing require Pro or Enterprise, according to the pricing page. The step is done when test accounts for two tenants show different results, and a user of one tenant cannot reach the other tenant's data by changing a URL or parameter.

  7. Deploy and test on a staging host

    Deploy the Metabase instance, the signing service and the host application to a staging environment that mirrors production networking, TLS and secrets handling. Run the full viewer matrix, including denied access, expired tokens and removed users. Record the Metabase version you deployed and confirm it is a supported release on the Metabase version support page, since upgrades later depend on that choice. The step is done when every test case passes, the results are documented, and the team has agreed a rollback plan based on restoring the application database backup.

How embedding differs for single node, high availability and air-gapped installs

On a single node, embedding has the fewest moving parts, and most of the work sits in the signing secret and the network path in front of Metabase. The embedding host signs requests with a secret that Metabase must also know, so the key needs to be set once, stored with the same care as other production credentials, and changed only through a planned release of the host application. Browser traffic and calls from the host to Metabase should both travel over TLS, usually through a reverse proxy that terminates TLS and forwards requests to the Metabase process.

  • Signing secret. Generate the embedding key in the admin settings, store it in your secrets manager, and confirm the host application reads it from the same source.
  • Reverse proxy. Place a reverse proxy in front of the Metabase port and confirm it forwards the host and protocol headers Metabase uses to build its links.
  • TLS on both legs. Terminate TLS at the proxy for browser traffic, and encrypt the hop from the embed host to Metabase if it crosses a network.
  • Frame and origin rules. Confirm the embedding site's domain is permitted to display Metabase pages, and test from a browser on the real embed origin.
  • Key changes. Schedule key rotation as a maintenance task, because signed requests made with the old key stop validating.

Before go-live, test the signing secret, the proxy headers and the embed origin together in a staging copy, since a mismatch in any one of them can appear as blank or refused embeds rather than a clear error message.

Securing embedded content and signing keys

An embed is a route from the public or a customer's browser into your Metabase data, so its security depends on a few controls working together: the key that signs embed tokens, the choice of what is embeddable, the permissions behind each question, and the database account that runs the queries. Confirm how each control behaves in the Metabase version you deploy, because several depend on your plan.

Protect and rotate the signing key

Guest and SSO-based embeds that use signed tokens depend on a secret key held by your application server. Anyone who holds it can mint tokens that open embedded content, so store it in a secrets manager, keep it out of source control and front-end code, and restrict who can read it. Plan a rotation procedure before go-live, because rotating the key invalidates tokens signed with the old one and every embedding application must switch at the same time. Confirm the key location and rotation steps for your version in the embedding settings.

Embedding docs

Limit what can be embedded

Only dashboards and questions that are explicitly enabled for embedding should appear in an embed. Keep embeddable content in a dedicated collection so reviewers can see the full list at a glance, and avoid embedding questions built on broad, unfiltered tables. Review the list whenever a product team asks for a new embed, since a dashboard that was safe for internal users may expose more data once it is public or customer-facing.

Enforce row and column permissions

Row and column level permissions and multi-tenant data segregation are features of the Pro and Enterprise plans, according to the Metabase pricing page. Use them so each tenant sees only its own rows, and test with a sample account from each tenant rather than assuming the filter works. On Open Source or Starter, the separation has to come from separate databases, separate Metabase instances or the filter applied in the embedding token, and each approach needs its own review.

Metabase pricing

Use least-privilege database credentials

Embedded questions run queries against your data warehouse or application database under the credentials configured for that connection. Create a read-only database user limited to the schemas and tables the embedded content needs, and never reuse the admin account or the application database credentials. Review the connection settings after each schema change, since a new column can become visible to every embed that reads the table.

Disable public links where not intended

Public links and public embeds make content viewable by anyone who has the URL, with no sign-in. Audit which dashboards and questions have public sharing turned on, turn it off for anything meant only for signed-in users or tokened embeds, and keep a register of the ones you keep open. Confirm the sharing settings in your target version, because the available controls and their defaults vary between releases.

Review embedding settings after upgrades

Embedding behavior, token handling and sharing defaults can change between Metabase releases, and upgrades run database migrations automatically. After each upgrade, repeat your checks: confirm which content is embeddable, that expired or altered tokens are rejected, and that public links are still off where intended. Keep this check in the same runbook as your upgrade and backup steps.

How to test that embeds show the right data and fail safely

Test the embed as a security control, not as a page that renders. Start with a valid signed token that loads only the dashboard or question it names, then confirm that the same token cannot be reused to open a different dashboard, question or filter value by editing the URL or payload. Next, submit a tampered token (one changed character or altered parameter) and an expired token, and confirm that Metabase refuses both with an error rather than a blank or unfiltered view. Keep these as repeatable cases in your test plan, because a signing key rotation or a change in the host app's token code can break them without any visible symptom.

Test isolation between customers with at least two test tenants whose data differs in every field the filter touches. Log in as a viewer for tenant A and check every card, table row, drill-through and export for tenant B values, including the cases where a user edits a filter in the embed. Then change a user's group membership or attribute in the identity provider and confirm the change takes effect on the next session, and that removing access in Metabase stops an existing embed view. Confirm the exact propagation behavior for your configuration with Metabase before you rely on it, since it depends on how you pass identity and permissions.

Run the same cases across each state the host app can be in: anonymous, logged in without a subscription or entitlement, logged in with the right role, and after logout in a second tab. Also confirm that public links are disabled wherever your policy says so, by requesting the public URL from an outside network. Finally, check fail-closed behavior: break the token service, remove the signing secret in a test environment, or point the embed at a missing dashboard, and confirm the user sees an error page, not an open or default view. Record the results and rerun this suite after every Metabase upgrade, since upgrades can change how embed errors are rendered.

What to monitor, back up and upgrade after embedding goes live

This table lists what the team must run after an embed reaches users, with the owner, the trigger and the evidence to keep for each item. Read it as a handover checklist: each row names a recurring task that embedding adds on top of a normal Metabase installation. The main takeaway is that the signing key, the identity mapping and the pre-upgrade database backup each need a named owner before go-live.

AreaWhat to doWhy it matters for embeds
Embed load and auth errorsAlert on failed embed loads and authentication failures in application and proxy logsErrors often surface first as blank dashboards in the customer's portal, not as Metabase alerts
Signing key locationRecord where the embedding secret or signing key is stored, who can rotate it and how rotation reaches the appA lost or mismatched key breaks every signed embed at once, so the location must be known before an incident
Identity mapping ownersName one owner for the rules that map your users, tenants or attributes to Metabase groups and parametersWrong mappings can expose another customer's data, so changes need review by a named person
Application database backupBack up the application database before every upgrade and keep the backup tied to the Metabase version in useUpgrades run database migrations automatically, and the backup is the recommended rollback path
Rollback pathDocument restoring the pre-upgrade application database backup, then running the older JAR against itRollback by migrating down with the newer JAR is possible, but restoring the backup is the documented recommendation
Support windowsTrack Metabase 64 (LTS, end of life 1 December 2027) and Metabase 65 (released 12 October 2026) against your upgrade calendarVersions past end of life stop receiving security fixes, which affects every embedded surface
Post-upgrade embed reviewAfter each upgrade, retest signed embeds, guest parameters, public links and permissions for each tenantEmbedding settings and access behavior can change between releases, so a successful upgrade is not proof that embeds still behave correctly

Metabase embedding questions buyers ask before hiring help

Does guest embedding work on the free Metabase edition?

Yes. Guest authentication works on all plans, including Open Source, according to Metabase's embedding documentation. A guest embed lets an application show selected dashboards or questions to people who do not have a Metabase login, with the application deciding what each viewer can see. Free use still has limits to plan around: the open source edition does not include SSO, row and column level permissions, multi-tenant data segregation, or usage analytics and auditing, so any per-user access control has to be built on the application side or handled by the paid plans. Confirm the current edition feature list on the Metabase pricing page before you commit to a design.

Which Metabase plan does SSO-based embedding require?

All SSO-based embedding requires the Pro or Enterprise plan, according to Metabase's embedding documentation. That covers embedding that authenticates viewers through your identity provider instead of guest tokens. SSO itself, including JWT, OIDC and SAML, is also limited to Pro and Enterprise, while Google sign-in and LDAP are available on Open Source and Starter. 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. Check the pricing page for current figures, since prices change.

How much effort does an embed take, and what drives it?

Effort depends mostly on four things: how many embedded views you expose, how many tenants or customer segments the views must separate, which identity sources the viewers come from, and how permissions are designed. A single guest dashboard behind your existing login is a small job. Many views, per-customer filtering and SSO tied to group mapping add data modeling, testing and ongoing maintenance. Ask any partner for a written scope that lists each embedded view, the authentication method, the tenancy model, the identity source and the staging environment used for testing. Those items determine the quote far more than the Metabase license does.

Can our own team build Metabase embeds without a partner?

Yes, if your engineers can own the integration and have time to learn the embedding model. The work involves signing embed tokens or configuring SSO on the server side, setting up the embed in the front end, and testing what each viewer can reach. Teams with a strong application and identity background usually handle a first embed in-house. The risks sit in the details: a misconfigured signing secret, a filter that does not restrict data as intended, or a permission gap that shows one customer another customer's rows. Plan a review of the access model before go-live, whoever builds it.

What does the embedding work need from our side?

The work needs a few named owners and access before it starts. Ask your team for these items:

  • Administrative access to your identity provider, if SSO is in scope, including the ability to create test users and groups
  • A staging Metabase host connected to a non-production copy of the data, so embeds can be tested before customers see them
  • An owner for permissions who can decide which data each group, tenant or guest may see
  • A developer who can add the embed code and secrets to your application and deploy it

Missing any of these usually delays the project more than the technical build does.

How does the static embedding deprecation affect existing embeds?

Static embedding is deprecated in Metabase, and new work should use modular embedding, full app embedding or public links, which are the options Metabase lists in its embedding documentation. Existing static embeds keep working until you change them, but they will not get the newer features, so plan a migration rather than waiting for a breakage. In practice, list each static embed, the dashboard or question it shows, and the authentication it uses. Then rebuild each one with the current method on a staging host, compare what viewers see, and cut over. Confirm the current deprecation timeline with Metabase before scheduling the work, because the timeline is not covered in the facts this page relies on.

Should we pay for Pro or Enterprise before testing the embed?

Test on the lowest plan that supports the authentication you need, and move to a paid plan only when the design requires it. A guest embed can be prototyped on Open Source, while any SSO-based embed needs Pro or Enterprise from the start, so budget for that before the build. Ask whether the first test can run on a trial or a short-term subscription in your staging environment, and confirm current terms directly with Metabase. Per-user pricing grows with the number of people who log in to Metabase itself, which is different from the number of viewers an embed serves, so count both when you estimate cost.

A guest or SSO embed request passes through the host app before Metabase checks permissions

The flow starts when a user opens a page in the host app. The host app authenticates that user, then either signs a short-lived token for a guest embed or completes SSO for an SSO-based embed. The browser then loads the embed from Metabase, which checks the signed token or SSO identity against its permissions and reads from the application database before returning the content. The trust boundary sits between the host app's signing step and Metabase, so the signing key and the permission model are the points to verify.

Request path for guest and SSO embeds, with the host app and Metabase as separate trust zones.

How DeployOpen scopes, builds and hands over Metabase embedding

DeployOpen plans, builds and documents Metabase embedding inside your own infrastructure, starting from the product or portal where the content will appear. Each engagement begins with a written scope that names the embedding mode, the authentication method and the plan each one requires.

How we scope

  • Confirm where dashboards and questions will appear and which embedding mode fits each place
  • Decide guest or SSO authentication and check that the chosen Metabase plan supports it
  • Record the written scope, deliverables and timeline before any build work starts

How we build

  • Configure the embedding secret or signing setup and the embedded content in a non-production Metabase
  • Test that row-level and collection permissions hold for each embedded viewer identity
  • Verify embedding behavior across the browsers and portal pages your users actually open

How we hand over

  • Document each embed, its authentication method, the data it exposes and the owner of each setting
  • Walk your engineering and security teams through the signing keys, rotation steps and access controls
  • Provide a runbook for adding new embeds and for reviewing public sharing settings over time

How we support

  • Offer ongoing support, upgrades and continuous testing for embeds as a retainer
  • Retest embedded views after each Metabase upgrade to confirm signing and permissions still behave
  • Plan version moves with your team ahead of end-of-life dates listed on Metabase's version support page

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.