Skip to main content
Embedsy logo
vb_leaf

Publicly Embedding Reports, Pages, and Visuals

★ Premium feature

This is a premium feature, available with an active premium subscription or trial. If you don't see it, contact us or your Admin to add it to your plan.

Public Embed generates a self-contained iframe for a whole report, a single page, or an individual visual that anyone can view without signing in to the portal or to Power BI (unless it uses a row-level role, see below). It's meant for content you want to place on a public website, a wiki, or a shared page.

Treat public embeds as public. Because these links require no authentication, anyone who has the iframe code can see that data. Only embed reports, pages, or visuals whose contents are safe to expose to everyone.

Keep the capacity running. Public embeds load from your Power BI Embedded or Fabric capacity like any other report - if the capacity is paused, they won't load. We recommend running the capacity 24/7 while you have public embeds rather than relying on auto-pause. See Capacity Management for how to configure this.

Enabling Public Embed

Three things need to be in place before anyone can create a public embed:

  1. Premium Features active. Public Embed is included with Premium Features and has no switch of its own: it is on while the subscription is active, the trial included, and Global Settings marks it Included.
  2. Service principal configured. Public Embed uses its own Power BI service principal, separate from the portal's main one. Set it up as described below.
  3. Role permission granted. In Roles/Pages/Users, on the Roles tab, edit a role and check Can embed reports/visuals. Only users with this permission, admins included, see the Public Embed screen.
    Can embed reports/visuals role permission

Setting up the service principal

Public Embed reads reports and creates the public links with its own service principal, so public access stays isolated from the rest of your portal: it can only reach the workspaces you add it to.

  1. Create a second app registration in the same Microsoft Entra tenant as the portal's main service principal. Follow steps 1 to 6 of the Service Principal setup to register the app and create a client secret, without the redirect URI. It needs no API permissions.
  2. Put it in a security group of its own and add that group to the two Fabric tenant settings Embed content in apps and Service principals can call Fabric public APIs, as described in Fabric admin settings. Without them Power BI refuses the service principal and no workspace can be picked.

    Don't add it to the portal's security group. That group is a member of the portal's workspaces, so the Public Embed service principal would gain access to all of them.

  3. Add it as a Member of every workspace you want to publish from, and of the workspace of any semantic model those reports use. Only these workspaces can be picked when you create an embed. We recommend dedicated workspaces for public embedding, so nothing outside them can ever be exposed publicly.
  4. Enter it in the portal. In Global Settings, under Embed Visuals, enter the Application (client) ID in Embed Visuals Service Principal and the secret's Value (not the Secret ID) in Embed Visuals Service Principal Client ID Secret, then select Save Changes. The secret field always shows asterisks; leave it empty to keep the saved secret.
    Embed Visuals service principal settings

Public embeds stop loading when this secret expires. The portal doesn't track the expiry of the Public Embed secret and sends no reminder. Note the date, and create a new secret and enter it here before then.

Creating a public embed

  1. Open Public Embed from the user menu at the bottom of the navigation on the left. If you don't see it, your role doesn't have the Can embed reports/visuals permission yet (see above).
    Public Embed entry in the Embedsy Portal user menu
  2. The page lists the public embeds: admins see all of them, other users only their own. Filter the list with Search by user email (the user who created the embed) and by workspace, report and type, or click Add Report/Page/Visual to create a new one.
    Public Embed list with filters
  3. Pick a Workspace Name and a Report Name. The report renders live in the dialog. Optionally choose a specific Page (hidden pages are selectable and marked (Hidden)). If the report's semantic model uses row-level security, a Row Level Role field appears.
    Add Public Embed dialog for a report with row-level security, showing the Row Level Role field

    An embed with a row-level role is not public. The role is applied with the signed-in portal user as the identity, so only visitors who are signed in to the portal in the same browser can see it. For anyone else the embed doesn't load. A report, page or visual can only be published with one row-level role; to change it, delete the existing embed first.

  4. To publish the whole report or a single page, use Embed Report for the whole report or Embed Page for just the page currently shown. The embed is saved and appears in the list.
    Add Public Embed dialog with a rendered report
  5. To publish a single visual, hover over it in the rendered report, open its context menu (the three dots in the top-right corner of the visual), and choose Embed visual. Text boxes, images and shapes can't be embedded on their own.

    The visual header must be on. If the header is turned off for a visual in the report (in Power BI Desktop, under the visual's formatting options), the three dots menu doesn't appear and the visual can't be embedded on its own.

    Embed visual option in a visual's context menu

Using the generated iframe

Each saved embed becomes a row on the Public Embed page, labelled with its id, report, and (for visual embeds) the visual name. Click Copy Iframe to copy a ready-to-paste <iframe> snippet, then drop it into any web page. The iframe fills its container (100% width and height), so give the surrounding element a height. Expand a row to see when it was created, its report, page, visual and workspace, the email of the user who created it, where it is used, and a live preview of exactly what visitors will see.

Expanded public embed with its details, where it is used, grouped by website, and the live preview

Where an embed is used

The expanded row also lists where the embed is used:

  • In this portal: iframe pages and Studio apps that contain it.
  • On websites: each website it has loaded on, busiest first, with how many pages, how often it loaded and when it was last seen. Select a website to see its pages. A website with a single page shows that page directly. Websites and pages that haven't loaded it for 30 days are greyed out and listed last. Opening the link directly, showing it in a desktop or mobile app, or a website that hides its address, shows as Unknown page.
Used on with one website opened to its pages, each with when it was last seen and how often it loaded

New loads show up after about a minute. The website list comes from the address the visitor's browser sends with the embed, so it shows where the embed appears, not who can see it. Iframe codes copied before this list existed only report the website's domain: copy the code again and replace it to see the exact page.

Delete Iframe revokes an embed after a confirmation that says how many pages still use it. The public link stops working immediately - any page still showing that iframe will no longer load it.

Delete every copy to revoke a link. The link points to the report, page or visual, not to one row. If the same view was published more than once, for example by two users, it stays public until all of its rows are deleted.

When Premium Features end

When the Premium Features subscription ends or is deactivated, every existing public link stops working at once - visitors see a message that the content is no longer publicly accessible. Reactivating Premium Features restores the existing links; nothing has to be recreated.

To take down individual links while the subscription is active, delete their embeds. Removing Can embed reports/visuals from a role doesn't take down the embeds its users have already created.

Was this article helpful?