Embedding audiences
Choose the audience before choosing the token
Embedded analytics places Power BI content inside an application. Choose the identity boundary first: employees with Power BI access use embed for your organization (user owns data); customers without direct Power BI access can use embed for your customers (app owns data). These are different authorization architectures, not merely different iframe URLs.
Identity, capacity and sharing
For organization embedding, each user signs in to Microsoft Entra ID and Power BI evaluates their access. For customer embedding, the application authenticates its customers and a trusted backend acquires an Entra token using its embedding identity, then requests an embed token scoped to permitted content. Customer viewers do not need individual Power BI licenses in that scenario, but production embedding requires suitable capacity. Organization viewers generally require Pro/PPU or eligible capacity; Microsoft documents P or F64+ exceptions for consumption. Verify current SKU, region, author licensing and workspace assignment separately; do not assume a trial is production capacity.
Worked example 1 — internal employee portal
An employee already has read access to the Sales report and its model. Choose organization embedding and the employee’s Entra access token with models.TokenType.Aad. If access is denied, stop rather than switching to a shared privileged identity. Secure portal embedding is an authenticated alternative for ordinary report consumption; regular sharing grants access through Power BI rather than through a custom SDK experience.
Worked example 2 — two retail customers
Customer A and B have separate workspaces and models: ws-a/model-a and ws-b/model-b. Alice belongs to A and Bea to B. Choose customer embedding; after authentication, the backend resolves the customer and report from its own registry. Each receives only their authorized report. The fictional fixture contains $230 for A and $1,100 for B before regional RLS. Dedicated customer service principals are recommended for new multitenancy designs in recent Microsoft guidance; profiles remain an option where appropriate. Evaluate lifecycle and isolation, not just workspace count.
Do not confuse embedding with public distribution
Publish to web makes content publicly reachable without authentication; it is not secure embedding and is unsuitable for confidential reports. Do not use an unlisted URL, hidden filter pane or obscured report identifier as access control. Confirm tenant settings, approved workspace and source permissions before deploying. This lab creates no resources and does not publish anything.
Practice and references
Write an audience/identity/token/capacity decision record for the two cases, then identify why publish to web is unsuitable. Read embedding tokens, capacity, secure embed and publish to web.