Setting up Metabase full app embedding

Full app embedding places the whole Metabase application inside your product's iframe for power users. This page covers the prerequisites, authorized origins, SSO and postMessage choices, and when modular embedding is the better fit.

On this page

Setting up Metabase full app embedding for power users

Picture a product team whose analysts want to work inside Metabase without a second login, building questions, dashboards and collections in the same place they already work. Full app embedding answers that need: on Metabase's Pro or Enterprise plans, it places the entire Metabase app inside an iframe in your product. According to Metabase's full app embedding documentation, the approach is meant for power users who need the complete Metabase interface rather than a few components. Metabase recommends modular embedding for new projects, so full app embedding is the choice to make deliberately, not by default. This section and the topic that follows focus on the exact experience a user gets inside the frame, because that experience is what your team must review, test and support.

Before you configure anything, confirm three prerequisites from the docs: a Pro or Enterprise license, groups and permissions set up in Metabase, and SSO, where Metabase recommends JWT. Without SSO, you have no reliable way to tell Metabase who the signed-in user is, so the frame would show the wrong person's content or fail to load. Also plan which parts of the app your users will see. The full interface includes navigation, the admin area and the ability to create and share content, so the permissions model, not the iframe, decides what each user can reach. Ask your Metabase contact or check the current documentation for the exact admin settings, since the setup steps for authorized origins and the embedding toggle live under Admin > Embedding.

What full app embedding requires before you start

Full app embedding depends on three things being in place before the iframe is ever added: the right license tier, a permissions model that already reflects your users, and an SSO connection that signs embedded users in. Each card below is a gate to check with your team and your Metabase admin before the build begins.

Pro or Enterprise license

Full app embedding is available only on the Pro and Enterprise plans. The open source edition has no route to it, and Starter does not include the SSO that embedding depends on. Confirm the current plan terms on Metabase's pricing page before you commit, because the feature set and user allowances per plan can change. Ask whether your license covers the number of users you expect inside the embedded app, and whether a separate development instance is needed for testing the embed on your own domains.

Metabase pricing

Groups and permissions set up

Embedded users see whatever their Metabase group allows, so groups, collection permissions and data permissions must exist before the first embed goes live. Map each class of user from your application to a group and decide which databases, collections and tables that group can query. Test the permissions with a user from each group before you expose the embed, because a missing restriction will show up as data your customers should never see.

SSO with JWT as the recommended method

Full app embedding signs your application's users into Metabase through SSO, and Metabase recommends JWT for this. Your application signs a token carrying the user's identity and any group information, and Metabase trusts it using a shared secret. Decide who owns that secret, how it is stored and rotated, and how your app builds the token. The JWT setup is documented separately, so review it before you design the login flow.

Full app embedding docs

Authorized origins in Admin

Metabase only allows embedding from origins you register. Add the domains that will host the iframe under Admin, then Embedding, before testing. Include every environment, such as staging and production, and confirm the exact scheme, host and port, because a mismatch blocks the embed without a clear error. Keep the list short, and review it whenever a new application domain is added.

Plan the iframe and browser behavior

The embedded app runs inside your page, so the browser's cookie rules and the layout of the surrounding application both matter. Check how your app is hosted relative to Metabase, since cross-domain hosting changes how session cookies behave. Confirm that your content security policy allows the Metabase frame, and decide which parts of the Metabase interface your users need to see. Testing these in a staging page early prevents rework later.

Decide whether modular embedding fits

Metabase recommends modular embedding for new projects, so confirm that full app embedding is the right choice before you build on it. Full app embedding gives power users the whole Metabase interface, while modular embedding places selected dashboards, questions or the query builder inside your own screens. Write down which user needs require the full app, because that decision determines the rest of the prerequisites.

Full app embedding compared with modular embedding and guest embeds

Full app embedding places the entire Metabase application inside an iframe in your product. Viewers get the same navigation, collections, query builder and admin areas that people see when they log in to Metabase directly, and you can hide selected parts of the interface when they do not belong in your product. It suits power users who need broad exploration inside your application, such as internal analysts or a small set of advanced customers who expect the full tool. It requires a Pro or Enterprise license, and the viewer needs an account and SSO, since the Metabase docs list groups, permissions and SSO as prerequisites. Metabase recommends modular embedding for new projects, so full app embedding is usually a choice for an existing setup rather than a first build.

  • Plan requirement: Pro or Enterprise, because all SSO-based embedding needs one of these plans.
  • UI exposure: The viewer sees most of Metabase, including navigation and collections, unless you hide components.
  • Identity: Each viewer is a Metabase user, so group and permission design carries over from the internal instance.
  • Authorized origins: The embedding domain must be added under Admin > Embedding.
  • Maintenance: The embedded app upgrades with your Metabase instance, so upgrade planning affects your product too.

Before choosing this option, confirm that your viewers actually need the full application and that your team can manage the group and permission model it exposes.

How to configure authorized origins, SSO and the embedding flow

This sequence takes a Metabase instance from license check to a verified full app embed, so your host application can open the whole Metabase app inside an iframe for signed-in users. Each step ends with a check you can run before moving on.

  1. Confirm the license and plan

    Confirm with your Metabase account team or the pricing page that the instance runs a Pro or Enterprise license, because full app embedding is available only on those plans. Check the plan under the admin settings of the instance itself, not only in your purchase records. Done means the license shows a plan that includes full app embedding and SSO. If the instance is on Open Source or Starter, stop here, since the later steps will not work on those plans.

  2. Set up groups and permissions

    An administrator creates the groups that the embedded users will belong to and assigns data permissions, collection access and any row or column restrictions before embedding begins. Embedded users inherit what their groups allow, so an error here becomes visible to customers or staff immediately. Done means a test user in each group can open only the dashboards, questions and databases that group should see when signed in directly to Metabase.

  3. Configure JWT single sign-on

    Under the authentication settings, an administrator enables JWT as the SSO method, which Metabase recommends for full app embedding. The host application team generates the signing key on their side and the Metabase team stores the shared secret in the instance settings, following the setup in the current docs. Done means a test token from your host application signs a user into Metabase without a password prompt, and a token with a bad signature is rejected.

  4. Map identity claims to Metabase users

    The host application team defines which claims travel in the JWT, such as email, first name, last name and groups, and the Metabase team confirms how each claim maps to a user and to group membership. Mismatched group names are a common cause of users landing in the wrong permission set, so compare each group name character by character. Done means a user from each test group signs in and sees the expected collections, and a user with no group claim is handled the way your policy requires.

  5. Add the host origin under Admin embedding

    An administrator opens Admin > Embedding and adds the origin of the host application, meaning the scheme, host and port where the page with the iframe is served. Only listed origins are allowed to frame Metabase, so add each environment separately, such as staging and production. Done means a request from the host page loads the iframe, and the same iframe fails to load when served from an origin that is not on the list.

  6. Build the iframe and hide unneeded UI

    The host application team creates an iframe that points to the Metabase full app embed URL and generates the signed request that Metabase expects, following the current full app embedding docs for the exact URL and parameters. Options for hiding Metabase navigation or other interface elements are set through the embed configuration, so confirm each option against the docs for your version before relying on it. Done means the embedded page renders without the elements you chose to hide and the page height and width fit your layout.

  7. Test postMessage communication

    If the host page needs to react to events from Metabase, such as navigation or a change of dashboard, the host team listens for postMessage events from the iframe and checks that it accepts messages only from the Metabase origin. Messages from any other origin should be ignored. Done means the host page logs the expected events in a test session and a message sent from a different origin does not change its state.

  8. Verify sign-in and the embedded session

    Run an end-to-end test in a browser: sign in to the host application, open the page containing the iframe, confirm the embedded session belongs to the expected user and groups, and check that a user in one group cannot reach content reserved for another. Also confirm that signing out of the host application ends the embedded session. Done means every test case passes in staging, and the results are recorded before production configuration. Confirm exact settings and behavior against the current full app embedding documentation before you sign off.

How a user's request moves from your app into the Metabase iframe

The request starts in the user's browser when they open a page in your product. Your application asks its JWT signing endpoint for a signed token for that user, and the token is passed into the iframe that points at Metabase. Before Metabase accepts the embed, it checks that the requesting page sits on an origin listed under Admin > Embedding, then validates the token and creates the session. Check the origin list and the signing key handling first, because both sit on the trust boundary between your product and Metabase.

Token and origin checks on the path from host app to Metabase iframe.

How postMessage communication and hidden UI components fit into the host app

A fully embedded Metabase app runs in an iframe inside your product, so your host page and the Metabase app talk to each other through the browser's postMessage mechanism. The host page sends messages to the iframe's window, and the embedded app posts messages back to the parent. Your team owns both sides of that conversation in the host code, so the design decisions sit with you: which events your page reacts to, which events it sends, and how it reacts when the iframe reports a state change such as navigation. Before writing any listener, confirm in the current full app embedding documentation which message types the embedded app emits and accepts for your Metabase version. Message names and payloads are not something to infer from older examples or community posts.

Hiding navigation or other UI components is a configuration choice on the Metabase side, not something the host page can reliably do by reaching into the iframe. Confirm which hide options the docs list for the embedded app and where they are set, then decide what your users should see: for example, whether the Metabase sidebar, header or collection browser should stay visible or whether your product's own navigation should carry the user through. Hiding a control is a presentation decision, not an access control. Anyone who knows the app's URL can still reach pages that the sidebar no longer shows, so the real limits come from groups, permissions and collection access that you set up beforehand.

Treat every incoming message as untrusted input. Your listener should check event.origin against the exact Metabase origin you expect, confirm that event.source is the iframe's contentWindow, and ignore anything else before it changes application state. Validate the payload structure as well, and never pass message data into script execution, HTML rendering or an authenticated API call without checking it first. Write these checks into your test plan, and include a test where a message arrives from a different origin. Check the same points again after each Metabase upgrade, because message behavior and hide options can change between versions.

Security risks of framing the full Metabase app

Full app embedding puts the entire Metabase interface inside another product, so every control that normally protects Metabase now sits between your app, the browser and the instance. The cards below cover the places where that boundary tends to fail and the checks that confirm each one holds.

Authorized origin allowlisting

Authorized origins are added under Admin > Embedding, and they decide which sites may load Metabase in a frame. An entry that is broader than the product domains, or an origin left over from a test environment, lets an unintended page host the full app. Review the list against your production and staging hostnames, remove stale entries, and confirm that each change is recorded by your change process before it reaches production.

Full app embedding docs

Group permissions visible in the frame

A framed user sees exactly what their Metabase account can reach, including collections, saved questions and databases. If groups and data permissions were set for an internal audience, a customer-facing or partner user placed in the same group can browse data they should not see. Test each group with a representative account and confirm that collection and data permissions, not the host application's navigation, decide what appears.

Clickjacking and frame exposure

Any page that allows framing by others can be abused to trick a user into clicking controls they did not intend to use. Check how your reverse proxy and the Metabase instance set frame-related response headers, and confirm which parent origins are permitted to embed the app. Verify the result with a test page on an unlisted domain, which should fail to render Metabase.

SSO secret handling

Full app embedding on Pro or Enterprise commonly relies on JWT-based SSO, where your application signs a token that Metabase trusts. The signing secret must be generated for this purpose, stored in a secrets manager and rotated through a planned window, because anyone holding it can mint a session for any user. Confirm that the secret never appears in front-end code, logs or repository history.

Session lifetime after sign-in

The session created by SSO continues after the host application signs the user out, unless the sign-out path is designed to end it. Decide how long an embedded session should last, how removed users lose access, and how a deprovisioned account is blocked on the Metabase side. Test sign-out, account removal and a session left idle in a browser tab, and confirm each behaves as your policy requires.

Permission tests through the iframe

Permissions tested inside the Metabase admin console do not prove the framed experience is safe, because the host application can route users to pages, pass parameters and cache views differently. Build a test matrix of user types, groups and collections, run each through the iframe, and record what is visible, downloadable and searchable. Repeat the matrix after every Metabase upgrade and every change to the host app.

Keeping the embedded instance current with upgrades

The embedding setup depends on the Metabase version you run, so an upgrade can change what your embedded app looks like and how SSO, groups and permissions behave inside the iframe. Treat the upgrade as a change to the embedding setup, not only to the server. Before you upgrade, record the current version, the authorized origins under Admin > Embedding, the SSO configuration and the group and permission mappings your host application relies on, then confirm each of them after the upgrade on a non-production copy. Metabase also publishes version support dates, so you can plan the next upgrade against the end-of-life date of the release you run rather than reacting to it.

Upgrades run application database migrations automatically when Metabase starts. The upgrade docs recommend backing up the application database first, and for major upgrades they recommend reducing a cluster to a single node because of a migration lock, so plan a short maintenance window for that step. Upgrade release by release if you are coming from a version older than 40. Confirm with your platform team who owns the backup schedule, how long a restore takes in your environment, and whether your embedding host can tolerate the instance being unavailable during the migration.

Rollback is the step most teams underestimate. The recommended route is restoring the pre-upgrade application database backup, which is why the backup must be taken and tested before the upgrade starts. The alternative is running the migrate down command with the newer JAR, which the docs also describe. Write down which route you will use before the change window opens, and rehearse a restore on a copy so you know the time it takes. Settle this with your team in advance, since an embedded instance that fails after an upgrade affects your customers, not only your internal users.

Questions buyers ask before setting up full app embedding

What drives the cost of setting up Metabase full app embedding?

The main cost driver is the amount of integration work around the Metabase instance, not the embedding itself. Full app embedding requires a Pro or Enterprise plan because all SSO-based embedding does, so the license is a recurring cost that the buyer pays to Metabase, and its price depends on the plan and user count shown on the Metabase pricing page. Services work is paid separately and typically covers:

  • Planning the groups, permissions and authorized origins
  • Configuring SSO and testing the login flow
  • Hosting, upgrades and backups of the self-hosted instance
  • Reviewing what the embedded app exposes to users

Ask any provider for a quote that separates one-time setup from recurring support and license costs.

Can our internal team set up Metabase full app embedding without a partner?

Yes, a capable team can do it if it has someone comfortable with the Metabase admin console, your identity provider and the embedding settings in Admin. The work depends on skills across several areas: configuring JWT or another supported SSO method, designing groups and data permissions, managing the application database and running upgrades. Gaps usually appear in SSO signing and session handling, and in verifying that hidden UI elements cannot be reached through the embedded app. Before deciding, check whether your team has time to own upgrades on a schedule and has a test environment that mirrors production.

What does the work need from our product and security teams?

The product team must define which screens users should see inside the embed, which navigation and admin areas must be hidden, and how embedded users map to Metabase groups. The security team needs to approve the identity design, the JWT signing secret handling, the list of authorized origins and how sessions are ended when a user leaves your product. Both teams should agree who can change embedding settings and how those changes are reviewed. Without these decisions, the setup tends to stall during testing rather than at the start.

How long does it take to scope full app embedding, and what changes the timing?

Scoping usually takes less time than the build, but the duration depends on how many decisions are already made. The largest variables are the identity provider you use, whether SSO is already configured for Metabase, how many groups and data permissions must be designed, and whether the Metabase instance runs in a environment that already has TLS, a reverse proxy and a managed database. Ask any provider for a written scope and timeline that lists these assumptions so you can see which ones change the schedule.

Does full app embedding need the same SSO setup as modular embedding?

Both approaches rely on SSO for embedded users, but full app embedding exposes the complete Metabase interface inside your page, so the access controls matter more. Metabase recommends JWT for full app embedding, and the prerequisites include a Pro or Enterprise license, groups and permissions in place, and SSO. Confirm in the full app embedding documentation which settings apply to your Metabase version before you choose an identity method.

When should we choose modular embedding instead of full app embedding?

Choose modular embedding when you want specific dashboards, questions or collection views inside your product rather than the whole Metabase application. Metabase recommends modular embedding for new projects, so full app embedding is usually the better fit only when power users need the complete analytics workspace, such as building their own questions. Modular embedding gives you tighter control over what appears and how it looks, while full app embedding shows more of Metabase to each user. Review the embedding introduction to compare the options against your product needs.

What breaks most often after full app embedding goes live?

The most common problems are session and cookie issues when the embed and the Metabase host are on different domains, expired or mismatched JWT signing keys, and users reaching hidden areas through direct URLs. Upgrades also need attention, because Metabase runs application database migrations automatically and recommends backing up the application database first. Plan monitoring for login failures, a documented process for rotating the signing secret, and a tested rollback path before the first production upgrade.

How DeployOpen scopes and delivers Metabase embedding

DeployOpen plans, implements, documents and supports self-hosted open-source platforms inside your own infrastructure, and that includes a full app embedding setup for Metabase. Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.

How we scope

  • Confirm a Pro or Enterprise license fits the embedding need, since SSO-based full app embedding requires one of those plans.
  • Map groups, permissions and the identity provider that will sign embedded users in, with JWT as the recommended option.
  • Agree the written list of authorized origins, embedding pages, and which Metabase UI components will be hidden.

How we build

  • Deploy the Metabase instance and application database in your environment, then configure SSO and the embedding settings under Admin > Embedding.
  • Build and test the host application's postMessage communication and the iframe wrapper against your actual page structure.
  • Test that embedded users see only the collections, data and groups they should, using accounts from each permission tier.

How we hand over

  • Deliver written configuration records covering SSO settings, authorized origins, group mappings and hidden UI components.
  • Document the integration code, the iframe parameters and a checklist for adding new origins or changing embedded pages.
  • Walk your engineering and security teams through the setup and record the decision on modular embedding for future projects.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers, so embedded pages keep working across Metabase releases.
  • Retesting after each Metabase upgrade covers SSO sign-in, origin rules and postMessage behavior before the change reaches users.
  • Ask any provider to confirm how they handle the upgrade path for Metabase version changes, including application database backups first.

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.