What Is Embedded Analytics? Integrate Insights into a Product and Secure Access
Learn what embedded analytics includes, how public, internal-user, and customer-facing patterns differ, and how to protect identity and tenant data when integrating dashboards into an app.
What Is Embedded Analytics? Integrate Insights into a Product and Secure Access
Embedded analytics integrates dashboards, reports, visualizations, or analysis into a website, work portal, or software product that people already use. Users can inspect metrics and explore details in their work context instead of switching to a separate BI screen. Embedding a view does not grant access by itself: the host app and analytics service must determine who is signed in and which data that person may see.
What can be embedded?
The simplest pattern places a read-only chart or dashboard in an iframe. A deeper integration identifies the user through the host app, opens analytics with permissions for that identity, and connects filters, interactions, or events to the surrounding product. The term therefore covers both displaying a chart and operating analytics as part of a product experience.
Keeping users in context can make insights easier to use, but it also brings authentication, licensing, performance, support, accessibility, and tenant separation into the product’s operating responsibilities. Public sharing, internal embedding, and customer-facing embedding may look similar on screen but use different security models.
Decide the audience and data boundary first
Ask “who will view this?” before choosing an embedding technology. Internal employees may use organizational accounts and existing BI permissions. For a customer-facing product, the app authenticates external users and must ensure that each customer sees only its own data, either by passing a verified identity into analytics or separating customer data spaces.
| Audience and purpose | Pattern to consider | Main decision and cost |
|---|---|---|
| Public metrics, maps, or promotional statistics | Public embed | Confirm that the data may be visible to anyone on the internet. It is unsuitable for confidential data or user-specific access. |
| Employees viewing existing BI reports in a company portal | Secure embed for organization users | Users authenticate with their organizational account; item permissions and row/object security must apply. Check viewer licensing or capacity. |
| SaaS customers signed in to their own product accounts | App-owns-data/customer embed | The host app authenticates users and issues a restricted token for content and data scope. Requires server-side credentials, token issuance, tenant isolation, and permission testing. |
| Analytics heavily customized as a product feature | API/SDK integration | Offers more control over experience, but raises development, version-compatibility, diagnostics, and security-maintenance costs. |
These are decision categories, not a universal product taxonomy. Products differ in their public links, iframes, SDKs, token mechanisms, and contracts; check current vendor documentation.
How identity and permissions flow
Power BI distinguishes two scenarios. In Embed for your organization (“user owns data”), employees sign in with Microsoft Entra ID and see content they are permitted to access in Power BI. In Embed for your customers (“app owns data”), an external customer signs in to the host app. The app’s server authenticates to Power BI with an embedding identity such as a service principal or master user, then issues an embed token that specifies allowed reports, models, and access level. These are different authentication and licensing/capacity arrangements, not interchangeable names. Microsoft recommends a service principal for production customer-facing applications. Power BI embedding scenarios · Power BI tokens and permissions
If several customers share one model, row-level security (RLS) can restrict each user to their customer’s rows. Object-level security (OLS) can hide tables or columns. With stronger isolation needs or scale, compare separate workspaces and models per customer. A shared model can reduce duplication but makes a faulty filter or role more consequential; separate customer spaces make boundaries clearer but increase provisioning and operations. Microsoft documents RLS, OLS, and workspace isolation as distinct Power BI controls. Power BI Embedded security
Keep service credentials and token-generation secrets on the server. The browser should receive only an expiring embed token scoped to the required content and access. Hiding a filter or disabling a button in the UI does not secure data. The analytics service must enforce permissions even if a user changes a request or tries another route. The server should determine the token lifetime, content, effective identity, and customer identifier; never reuse one customer’s identity for another session. These are general security principles, not a substitute for a vendor’s specific token design.
Documented examples: Power BI and Tableau
Power BI’s secure Embed option can put an internal report in a portal, but it does not grant report access. Users must authenticate and have view permission; RLS and OLS apply. Microsoft’s current guidance says each viewer may need Pro or Premium Per User unless both report and semantic model are on qualifying capacity. It also notes that Chromium security changes can lead to repeated sign-in, so test current browser behavior in production. Securely embed Power BI reports
For an external SaaS product, imagine inventory analytics shared by several retailers. After sign-in, the server checks the retailer ID and role, creates a token with that retailer’s RLS identity, and the page opens the permitted report. Verify with retailer A and B accounts that each sees only its own inventory; also try an unauthorized report ID and an expired token. This is an illustrative scenario, not a reported test. The Power BI Generate Token API can specify content and effective identity, but exact requirements depend on the data connection and security configuration. Generate an embed token
For a Tableau web app, Embedding API v3 offers the <tableau-viz> web component or JavaScript integration. You can start with the embed code from a published view’s Share menu, then add API control for filters or events. Tableau documents API v3 for Tableau Server 2021.4 and later and Tableau Cloud, with library/version compatibility requirements. Embedded views retain Tableau’s account, licensing, and permission rules; administrators can restrict allowed embedding sites. An iframe therefore does not automatically mean anonymous public access. Embedding API v3 overview · Basic embedding · Authentication and embedding
Do not confuse public and secure embedding
Power BI Publish to web creates an interactive public report, not a private link for selected viewers. Anyone on the internet can view it without authentication, and underlying detail data may be exposed even when the visualization shows only aggregates. It cannot be used for reports that rely on RLS, and Microsoft warns against publishing confidential or proprietary data. Confirm that public disclosure is explicitly acceptable before using it. Use authenticated secure embedding or an app-owns-data flow for internal or customer-specific reports. Power BI Publish to web security and limitations
Names and conditions vary across products. Do not assume an iframe URL alone enforces authentication or row-level access. Use a documented authentication method and test how tokens, allowed domains, and user scope are actually enforced.
Pre-release checks
**Audience and purpose:** identify employees, customers, partners, or anonymous visitors. Separately approve any anonymous access to the data.
**Authority for access:** state whether the host app, analytics identity, or user role is the source of truth. Test report access and row access separately.
**Tenant isolation:** verify customer IDs come from a trusted server-side identity and are enforced through RLS or separate workspaces. Try changing URL parameters to see whether another customer’s data can be reached.
**Secrets and tokens:** keep secrets out of frontend code, browser storage, and public repositories. Check expiration, revocation, least privilege, and audit logs.
**Licensing and operations:** check user/capacity licensing, concurrency, refresh, response time, mobile layout, keyboard and screen-reader access, and a fallback when embedding fails. Confirm current contract and product requirements rather than guessing prices or limits.
**Verification and recovery:** test a permitted user, a denied user, two different customers, an expired token, and a deleted or disabled user. If a test fails, correct server permissions or model security, then repeat the same test; hiding a UI element is not a fix.
Embedded analytics brings analysis into a product’s context, but the design unit is the identity-to-data access path, not the chart. Decide whether employees use existing BI access, the app grants restricted access to customers, or public data is shown without authentication. Then choose the integration and verify user-to-user data boundaries with real permission tests.
References
- Develop scalable multitenancy applications with Power BI embedding
- Permission tokens needed to embed a Power BI app
- Security in Power BI embedded analytics
- Embed a report in a secure portal or website
- Publish to web from Power BI
- About the Embedding API v3 (Tableau)
- Basic Embedding (Tableau)
- Authentication and Embedding (Tableau)
- Generate an embed token in Power BI embedded analytics