How to migrate Metabase static embedding to guest embeds
If your application already shows Metabase dashboards through static embedding, the move to guest embeds is usually a change to how the app signs requests and builds iframe URLs, not a rebuild of the dashboards themselves. The effort depends on how many embeds you have, how many parameters each one passes, and how many tenant or group rules sit behind them. Static embedding is deprecated, and the MB_ENABLE_EMBEDDING_STATIC setting that allows it defaults to false, so the first check is whether your instance still runs with that flag turned on and whether the current embeds depend on it.
Before estimating work, confirm a short inventory with your development team: every embed in use, the dashboards and questions each one shows, the parameters that currently scope data (customer, region, account or similar), and whether any embed relies on parameters a viewer can edit. Guest embeds load only when the request carries a JWT signed with the secret shared between your app and Metabase, and the data restrictions are passed as locked parameters in that token. Map each existing parameter to a locked parameter in the token, and check that no parameter has been left unlocked by accident, because a viewer who can change a value can see another tenant's data. The Metabase guest embeds documentation describes the token structure and the settings to configure.
Guest embeds work on all plans, including Open Source, so a move to guest embeds does not require a license change. SSO-based embedding, which suits cases where each viewer should sign in as a known user with their own permissions, requires Pro or Enterprise. Decide which model fits each embed: guest embeds fit anonymous or externally facing viewers whose access is fully described by the signed token, while SSO-based embedding fits internal or identified users who need their own Metabase permissions. Confirm the plan you run before committing to the SSO path, and review Metabase's data isolation methods to test how tenant rules will be enforced.
What stays the same and what changes in static embedding migration
This table compares each static embedding concept with its guest embed equivalent, so you can see which parts of your current setup carry over and which must be rebuilt. Read each row's migration note as the work item for that concept. The main takeaway is that the trust model and access restrictions carry over, while the token contents and the embed code change.
| Concept | Static embedding | Guest embedding and migration note |
|---|---|---|
| Signing secret | Your app signs a JWT with the embedding secret shared with Metabase | Same shared-secret model. The secret carries over conceptually, but confirm where it is stored and rotate it as part of the cutover. |
| Token payload | Payload identifies the dashboard resource and its parameters | Rebuild the payload for guest embedding, since the resource and claim structure differ. Do not copy static payloads unchanged. |
| Locked parameters | Parameters in the signed token that viewers cannot change | Locked parameters carry over in concept. Re-map each one to the guest embed payload and test that viewers cannot alter them. |
| Dashboard identifier in URL | Embed URL references the dashboard by its ID in the signed path | Identifiers move into the guest embed token rather than the static URL. Rebuild the iframe source and retest each embedded dashboard. |
| Iframe source | Static embed iframe URL generated from the signed token | Rebuild the iframe source for guest embedding. Old iframe code will not load guest embeds, so replace it in every host page. |
| Static embed setting | MB_ENABLE_EMBEDDING_STATIC enabled to allow static embeds | Default is false. Confirm the setting's current value, then review it before removal once no static embeds remain. |
| Data restriction for viewers | Viewers see the data the token exposes | Guest embed data isolation uses locked parameters for specific people or groups. Review which data each guest viewer can reach after migration. |
What changes in the embed code
The core change is that a guest embed loads only when the request carries a JWT signed with the secret shared between your application and Metabase. Static embedding let the page carry a signed URL that could be reused, while a guest embed needs your application to build and sign a fresh token for each viewer's request. The signing secret stays on your server, and the token must name the resource being embedded (a dashboard or question) and the locked parameters that restrict the data for that viewer. Locked parameters are the part that matters most for isolation: the viewer cannot see or change them, so a tenant or group filter set in the token is the boundary. Your existing signing logic may already produce a similar token, but the payload, the resource identifier and the parameter names must be rebuilt to match the guest embed model rather than copied across unchanged.
Before writing any code, confirm the exact payload fields, the iframe construction and how parameters are handled against the guest embed documentation for your Metabase version. The field names, the way resource types and IDs are expressed, and the rules for locked versus editable parameters are the details most likely to differ between versions, and a token that is valid but names the wrong resource or a parameter the dashboard does not expose will fail in ways that are hard to diagnose from the browser. Plan a short spike against a non-production instance that renders one dashboard for two test viewers with different locked values, and confirm that changing the token changes the data and that a tampered token is rejected. Record the working token shape and the iframe settings as the reference for the rest of the migration.
Plan the code change as a contained piece of work in the application that owns the embed. Your team will need to find every place static embed URLs are generated, replace each with a server-side function that signs a token for the current user, and remove the static embed secret handling once no page depends on it. Because MB_ENABLE_EMBEDDING_STATIC defaults to false, a static embed that still exists will stop working once the setting is left off, so inventory the embeds before switching it. Ask whoever maintains the application to confirm the signing library, the token lifetime they will accept and where the shared secret is stored, since those choices determine how exposed a leaked token or secret would be.
Guest embeds or SSO-based modular embeds: which path fits
Guest embeds fit situations where the people viewing the analytics are customers, tenants or external recipients who should not have Metabase accounts. Your application authenticates the viewer itself, then signs a JWT that carries the locked parameters for that viewer, such as a tenant ID or account identifier. Metabase loads the embed only when the JWT signature matches the secret shared between your app and Metabase, so the viewer never sees or edits the locked values. Guest authentication is available on every plan, including the open source edition.
- Licensing: Guest embeds work on Open Source, so no per-seat Metabase license is needed for viewers who never log in to Metabase.
- User management: Your application owns the viewer lifecycle, so no Metabase accounts are created or deprovisioned for each customer.
- Isolation: Locked parameters restrict the data each viewer can reach, and the isolation depends on how the signed parameters map to your data model.
- Secret handling: The shared signing secret must be stored and rotated like any other credential, because anyone holding it can sign tokens.
- Limits: Viewers have no Metabase home, saved questions or personal settings.
Before committing, confirm the locked parameters and data isolation method with the Metabase guest embed docs.
SSO-based modular embedding fits internal staff or partner users who already sign in through the organization's identity provider and should see analytics inside your own application under their own Metabase identity. Because each viewer is a real Metabase user, group membership and permissions apply the same way they do inside Metabase itself. This path requires a Pro or Enterprise plan, since all SSO-based embedding is paid.
- Licensing: Each embedded user counts against the plan's user allowance, so the seat count must be priced before rollout.
- User management: Provisioning and group sync can follow your identity provider, which reduces manual account work.
- Isolation: Row and column permissions and group-based access apply to each user, which suits shared data with differing visibility.
- Identity: Sign-in goes through the organization's SAML or OIDC setup, so access reviews can use the identity provider's records.
- Trade-off: Partners outside your identity provider need an account path that your security team has approved.
Ask the vendor to confirm which SSO and provisioning features your chosen plan includes, using the Metabase embedding introduction as the starting point.
Moving from guest embeds to SSO makes sense when viewers stop being anonymous recipients and start needing their own identities, audit trails or differing permissions. A common signal is a request to answer "who saw this data" with a named person rather than a tenant ID. Another is when internal users need saved questions, personal collections or drill-through into broader Metabase content. The migration changes how users are created and authorized, so it should be planned as a project rather than a code swap.
- Audit needs: Named identities give activity records that map to people in your identity provider.
- Permission complexity: Groups and row-level rules can replace some custom parameter logic.
- Licensing step-up: Moving from Open Source to Pro or Enterprise adds a recurring cost that should be quoted with user counts.
- Parallel running: Keep guest embeds for external viewers while SSO serves internal users, if both populations exist.
- Cutover: Map existing locked parameters to groups and attributes before disabling the old embed path.
Check with your security team whether guest embeds still meet your access review requirements before deciding to stay.
A short set of questions usually settles the path. Start with who views the content, whether they have or need an identity in your organization, and whether any individual viewer must be traceable. Then consider the plan you can fund and the user count you expect. The answers often point to a mixed design, with guest embeds for external audiences and SSO-based embedding for internal teams, sharing one Metabase instance.
- Viewer population: Count external viewers and internal users separately, since they usually follow different paths.
- Traceability: Decide whether named accountability is required or tenant-level scoping is enough.
- Plan budget: Get a quote for Pro or Enterprise if any SSO-based embedding is needed.
- Isolation design: Document how locked parameters or permissions restrict each population's data.
- Migration scope: List every static embed in use, since each one needs a replacement path.
Before deciding, have your team confirm both options against the current embedding documentation for the version you run.
Migration sequence from static embeds to guest embeds
This sequence moves each static embed to a guest embed in a controlled order, so every embed is proven against its current output before the old path is removed. It ends with static embedding disabled and the legacy code retired, with a documented rollback for each embed until its cutover is complete.
Inventory every static embed and its rules
Your team lists each static embed in the application code, with the dashboard or question it renders, the parameters it passes, the tenant or group rule that decides which rows a viewer sees, and the owner of the embedding page. Record the signing secret location and any parameter that a user can currently change in the browser. The step is done when every embed has one row in a shared inventory and the owner has confirmed the tenant rule in writing.
Confirm the Metabase upgrade path before the pilot
Before any code changes, confirm the Metabase version your instance runs and the target version you will use, and check the version support page for end-of-life dates. Follow the upgrade documentation for any hop needed, including a backup of the application database first. The step is done when the target version is running in non-production and the upgrade notes have been reviewed by the person who owns the Metabase instance.
Pilot one embed in non-production
Choose the lowest-risk embed from the inventory and rebuild it as a guest embed in a non-production Metabase. Enable guest embedding in that environment, create the signed JWT on the application side with the locked parameters for the tenant rule, and make sure viewers cannot change those parameters. Your team should test with at least one user per tenant or group, including a user who should see no rows. The step is done when the pilot shows the correct data for each test identity and the denied case returns no data.
Run static and guest embeds in parallel
Keep the static embed live in production and serve the guest version of the same content side by side, in a test page or a feature flag that only internal users can reach. For each test identity, compare the rows, totals, filter defaults and chart rendering between both paths, and log any difference. Resolve every mismatch before you move on, because a difference in row counts often points to a missing locked parameter rather than a display problem. The step is done when the comparison log shows no unexplained differences for the agreed test identities.
Cut over each embed with a rollback path
Switch production traffic for one embed to the guest embed, while the static code path stays deployed and can be re-enabled by a configuration change or feature flag. Watch access logs, error rates and support tickets for the agreed window, and confirm that users see the expected data after the switch. Repeat this step for each embed in the inventory, in the order you set during planning. The step is done when each embed has a recorded cutover date, a tested rollback, and no open incidents tied to it.
Disable static embedding in Metabase
Once every embed runs as a guest embed, confirm that no page still requests a static embed URL, then set the
MB_ENABLE_EMBEDDING_STATICenvironment variable to false, which is its default value, and restart Metabase. Check the Metabase admin embedding settings afterwards to confirm static embedding is off. The step is done when a request to a former static embed fails and the admin settings show static embedding disabled.Decommission the static embed code
Remove the static embed code paths, the unused signing or token helpers, the feature flags that selected between the two paths, and the test pages built for the parallel run. Update the internal documentation and the inventory so each embed points only to its guest embed definition. The step is done when the code repository and the documentation contain no references to static embedding, and the removal has been reviewed and deployed.
Documented tools and references for the move
Three Metabase references cover most of the work in a static-to-guest embed move: how guest embeds are built, how data is isolated between viewers, and which setting turns static embedding off. Read them together before estimating the rewrite, because each one answers a different question the team will face in code review.
Guest embed JWT and locked parameters
This is the reference for the replacement mechanism. A guest embed loads only when the request carries a JWT signed with the secret shared between your application and Metabase. Locked parameters are passed inside that signed token, so viewers cannot see or change them. Your engineers should confirm how each existing static embed value maps to a locked parameter, and test that a tampered or unsigned token is rejected before any customer sees the new embed.
Guest embeds docsData isolation methods
Use this reference to decide how tenants or groups are separated once the embed moves. The choice depends on whether your data lives in one database with shared tables, separate schemas, or separate databases. Map each current static embed to one isolation method, then confirm that the chosen approach matches the permissions your application already enforces. Re-check this decision before go-live, since a mismatch exposes rows that the old embed never showed.
Data isolation docsMB_ENABLE_EMBEDDING_STATIC setting
The MB_ENABLE_EMBEDDING_STATIC environment variable controls whether admins can create static embeds, and it defaults to false. Confirm its value in every environment, including staging and disaster recovery copies. Once the rewrite is verified, many teams leave it disabled so no one can publish a new static embed by accident. Record the value in your configuration review so the change is traceable.
Inventory of existing static embeds
No automated importer converts static embed code, so the rewrite is engineering work. Start with a written inventory of every dashboard or question embedded through a static embed, the page or application that hosts it, and the parameters it passes. This list defines the scope of the migration. Without it, teams commonly find a forgotten embed after the old setting is turned off.
Signing and secret handling
Each guest embed depends on a shared secret used to sign JWTs. Decide where that secret lives, who can rotate it, and how the application server reads it, using your existing secrets store rather than source code. Plan the rotation procedure before launch, because changing the secret invalidates tokens signed with the old value and breaks every embed until the application and Metabase agree again.
What drives the effort of moving off static embeds
This table lists the factors that change how much work a static embed migration takes, which costs are paid once and which recur, and what to request in a quote. Use it to size the scope before comparing partner proposals or internal estimates. The main takeaway is that the number of token-generating code paths and the data isolation model usually matter more than the number of dashboards.
| Driver | Why it changes effort | How to keep it down or what to ask |
|---|---|---|
| Number of embeds and dashboards | Each embedded dashboard or question needs its parameters mapped, its card behavior checked and its embed code replaced. | Ask the partner to list every embed by dashboard ID and owning application before quoting. |
| Locked parameters and tenant rules | Each locked parameter must be carried in the signed JWT and tested for every viewer type, which multiplies cases as tenants grow. | Consolidate rules into a small, documented set of parameters and ask how each rule is tested. |
| Row-level isolation requirement | If row-level isolation is needed, the design has to be checked against Metabase's data isolation methods rather than assumed from dashboard filters. | Confirm early which isolation method applies and whether it is in the open source edition or needs a paid plan. |
| Code paths that generate tokens | Every application route, service or background job that signs a JWT is a place where a wrong parameter can expose data, so each one needs review. | Ask for an inventory of all token-signing code and a review of each path before cutover. |
| Data leakage testing | Testing has to show that a viewer cannot read another tenant's rows, change locked values or reach an unembedded dashboard, which takes scripted and manual cases. | Request written test cases, the test environment setup and the evidence delivered at the end. |
| Adding SSO to the embed | Moving to SSO-based modular embedding changes identity design and requires a plan that includes Pro or Enterprise, which is a separate cost decision. | Decide whether SSO is needed for the embed or only for internal users, and ask the partner to quote the two paths separately. |
| Secret management and rotation (recurring) | The secret shared between the application and Metabase must be stored, rotated and removed from old deployments, which repeats on a schedule your team sets. | Ask who owns rotation, where the secret is stored and how a rotation is rehearsed without downtime. |
| Version upgrades (recurring) | Each Metabase upgrade can change embed behavior, so regression checks on embedded dashboards repeat with every upgrade cycle. | Ask whether the quote includes retesting embeds after each upgrade or only the initial migration. |
What usually goes wrong during the embed migration
Most failures in a static-to-guest embed migration come from the parameters, secrets and settings around the embed rather than from the embed code itself. The cards below cover the risks that expose data or break dashboards, and the testing and access reviews that catch them before cutover.
Missing or wrong locked parameter
A guest embed only restricts data to the values carried in the signed JWT. If the tenant or customer identifier is left out of the locked parameters, or is mapped to the wrong dashboard filter, one customer can see another customer's rows. Test with two sample tenants and confirm that each token returns only its own records, including on drill-through and export paths. Review every dashboard the embed exposes, not only the main view.
Data isolation methodsSigning secret shared too widely
The embedding secret key is what proves a request came from your application. If it is copied into several services, committed to source control, or shared with contractors, anyone holding it can mint tokens with any parameter values. Store the key in your secrets manager, limit read access to the service that signs tokens, and rotate it through a planned change window. Record who has access and review that list each quarter.
Static embeds left enabled after cutover
Static embedding is off by default, but an administrator may have turned it on for the old integration. Leaving it enabled keeps a path open that does not use signed guest tokens. After the last static embed is removed, confirm the setting is false in your deployment configuration and in the admin settings, then check that old embed URLs return an error. Add this check to the cutover runbook so it is not skipped.
Environment variables docsDashboard edits that break parameter mapping
Renaming a filter, deleting a question, or changing a field type on a dashboard can silently remove the link between a JWT parameter and the data it was meant to restrict. The embed may still load, showing unfiltered results or an error. Freeze the dashboards used by embeds, keep a change log for them, and rerun the isolation test cases after every edit. Ask the dashboard owners to notify the integration team before changing any embedded content.
Version mismatch during upgrades
Embedding behavior and parameter handling can change between releases, and upgrades run application database migrations automatically. Upgrading the Metabase version while the application still signs tokens for an older expectation can break embeds in production. Test the full embed flow on a staging copy at the target version before upgrading production, back up the application database first, and confirm the upgrade order against the upgrade documentation for your starting version.
Upgrading Metabase docsQuestions teams ask before moving off static embedding
How much effort does moving from static embedding to guest embeds take?
The effort depends less on the Metabase side than on your application. Switching from static embedding to guest embeds changes how your app authorizes a viewer: instead of pointing at a fixed signed URL, your server signs a JWT for each request and passes locked parameters such as tenant or customer ID inside it. The work therefore splits into three parts: changing the server code that signs tokens, changing the front-end embed code, and retesting every dashboard so that the locked parameters filter data correctly. Teams with many embedded dashboards and several customer segments spend most of their time on the parameter mapping and the isolation tests. Confirm with your engineers how many embeds, parameters and front-end frameworks are involved before you estimate effort.
What drives the length of the migration?
Duration is driven by the number of embedded dashboards, how many distinct viewer groups you isolate, how your application currently builds its embed URLs, and how many environments need to change. Guest embeds only load when the request carries a JWT signed with the secret shared between your app and Metabase, so the secret handling, key rotation and deployment order all need planning. Test coverage matters too. Without automated checks that a viewer in one tenant cannot see another tenant's rows, each change takes longer to verify. Ask any partner to break the plan into discovery, build, isolation testing and cutover, and to name the dependencies on your release calendar.
What must our team provide before the migration starts?
You need to provide a current inventory of every static embed, including the dashboard IDs, the parameters they use and the application code that generates their URLs. You also need access to the Metabase instance with admin rights, a staging environment that matches production, the shared signing secret handling process, and a named owner from your application team who can approve changes. Compliance and security reviewers should be involved early if embedded dashboards expose customer data. Confirm access, change windows and sign-off rules in writing before work begins so that the isolation tests can run against realistic data.
Can our in-house team do the migration without a partner?
Yes, if your team already maintains the embedding application and has someone comfortable with JWT signing and Metabase administration. The Metabase documentation describes the guest embed flow and the data isolation methods, so an experienced engineer can follow it. The risks lie in isolation mistakes, which are easy to make when parameters are mapped inconsistently across dashboards. Consider a partner if your team is small, the embeds serve external customers, or you need independent evidence of the tenant boundary for a security review. Weigh the cost of internal engineering time against the cost of a scoped engagement with a written deliverable list.
Do we need SSO, or can we stay on guest embeds?
Guest embeds are enough when your application decides who sees what and signs a JWT for each viewer, because the viewer never signs in to Metabase. Move to SSO-based modular embedding when viewers need their own Metabase identity, when you want Metabase to enforce group and attribute permissions directly, or when users should be able to explore data beyond a single embedded dashboard. Both approaches are valid, but the choice changes your identity architecture, licensing and testing. Decide this before the code changes start, because switching later means rebuilding the authentication path a second time.
Do guest embeds require a paid Metabase plan?
No. Guest authentication works on all plans, including Open Source, according to the Metabase embedding documentation. What requires a paid plan is SSO-based embedding: all SSO-based embedding requires Pro or Enterprise. The pricing page lists Open Source as free, Starter at $100 per month or $90 per month billed yearly, Pro at $575 per month or $517.50 per month billed yearly, and Enterprise priced by quote starting at $20,000 per year. Confirm current prices on the pricing page before budgeting, and ask any partner to separate one-time migration work from these recurring licence costs.
What happens to our existing static embeds during the switch?
Static embedding is deprecated, and the MB_ENABLE_EMBEDDING_STATIC setting that allows it defaults to false, so a fresh instance will not accept static embeds unless an administrator turns it on. Plan the cutover so that each embed moves to a guest embed in staging, passes isolation tests, and then goes live with the old path removed. Keep a rollback plan for the application release, and avoid leaving the static setting enabled after the migration, because that leaves an older access path open. Confirm the exact configuration state of your instance before cutover.
How a guest embed request flows from the app to Metabase
The request starts in the user's browser, which loads a page in your application. The app server confirms the user's tenant, then builds a JWT signed with the secret shared with Metabase. That token carries the dashboard or question being embedded and the locked parameters that scope the data, so viewers cannot change them. Check that the signing happens only on your server, that the secret never reaches the browser, and that Metabase rejects any token whose signature does not verify before it renders anything.
Guest embed request path, with the trust boundary between the app and Metabase marked.
How DeployOpen scopes and delivers the embed migration
DeployOpen delivers the move from static embedding to guest embeds under a written scope, agreed before work starts. The scope usually begins with an inventory of every embed: each dashboard or question embedded in your application, the signing code that builds the JWT, the parameters that are currently locked, the groups or tenants each embed serves, and the environments where it runs. That inventory is what turns a vague migration into a list of items with owners, and it shows which embeds can move as-is and which need changes to their parameters or permissions. A pilot then moves one or two representative embeds through the new flow, including the case where a viewer tries to change a locked parameter or load an embed without a valid token.
After the pilot, the work runs in parallel: the static embed and the guest embed serve traffic side by side while you compare what each viewer sees. Cutover switches the application to the signed guest flow, and decommissioning removes the static embed code paths and confirms that MB_ENABLE_EMBEDDING_STATIC is no longer needed. Security testing of tenant isolation can be added to the scope, so that a tester checks whether one customer's JWT can reveal another customer's rows. Ask any partner, DeployOpen included, to name the test cases and the evidence they will return.
DeployOpen does not publish a price list. A quote follows from the agreed scope, so the inventory size, the number of embeds, the number of tenants, the environments and whether security testing is included are the main inputs to ask about. Ask the quote to separate one-time migration work from any recurring items. Ongoing support, upgrades and continuous testing are available as retainers, and they matter for embeds because Metabase upgrades can change embed behavior and the signing code must keep pace with the application.

