Publish to web in Power BI creates a public link and iframe code for a report. Anyone on the internet who has the link can view the report and its underlying data, with no sign-in. Because of that risk, only a Fabric administrator can allow it, through the Publish to web tenant setting, and admins can limit it to existing codes or to specific security groups. If the data isn’t meant for the public, use secure embed, the SharePoint Online web part or Power BI Embedded instead.
This guide covers what Publish to web does, the security change Microsoft made to the tenant setting and how it works today, how to create and delete embed codes, what isn’t supported, how often published data refreshes, a comparison with the secure ways to embed, and a checklist for admins.
What Publish to web does
When you publish a report to the web, Power BI gives you two things: a public URL you can send in an email, and an HTML <iframe> snippet you can paste into a web page or blog. The report stays interactive, so visitors can click, filter and move between pages.
The important part is what Microsoft’s documentation warns about: there’s no authentication, and viewers can get at detail-level data in the model, not just the numbers shown on the visuals. In practice, treat everything in the semantic model behind the report as public once you create the code. People can also copy the link and share it anywhere, so you can’t control who ends up seeing it.
It’s the right tool for genuinely public data, for example published statistics, a public dashboard on a council or charity website, or figures a company already discloses to investors. It’s the wrong tool for anything internal, even “only on our intranet”: an intranet page with a Publish to web iframe is still showing a public report.
The security update: who can create embed codes
In the early days of Publish to web, any user could create embed codes unless an admin had turned the feature off. Some organisations found reports with internal data published without anyone in IT knowing. Microsoft responded (the screenshots in the first version of this post date from late 2019) by changing the tenant setting so that:
- Users can’t create new embed codes until a Fabric administrator allows them to. Instead they see a message asking them to contact their admin.
- Admins can choose to keep existing codes working while blocking new ones.
- Admins can limit creation of codes to specific security groups, rather than the whole organisation.
That is still how it works in November 2026. Microsoft’s admin documentation puts it simply: only admins can allow the creation of new publish to web embed codes.

The Publish to web tenant setting
The setting is in the admin portal under Tenant settings > Export and sharing settings > Publish to web. You need the Fabric administrator role.
The options are:
- Enabled or Disabled. If you disable it, nobody can create codes and existing public reports stop rendering. The codes aren’t deleted, so they start working again if you re-enable the setting.
- Choose how embed codes work. Pick between allowing only existing embed codes, or allowing existing and new codes. “Existing only” is the safe middle ground if you’ve inherited public reports you still need but don’t want any more.
- Apply to. The entire organisation, or specific security groups, with an option to exclude specific security groups.
What users see depends on the setting:
| Setting | Publish to web menu option | Manage embed codes (Settings) | Existing public reports |
|---|---|---|---|
| Enabled for the entire organisation | Available to everyone | Everyone can get and delete their codes | Keep working |
| Enabled for specific security groups | Only for people in those groups | Everyone can get codes; only authorised people can delete | Keep working; codes owned by people outside the groups show as Infringed in the admin portal |
| Disabled | Not visible | Still visible | Stop working; status shows as Disabled |
One more control: if your organisation uses private links to block public internet access to Fabric, the Publish to web option is greyed out in the admin portal.
Who can create an embed code
Even when the tenant setting allows you, a few conditions apply:
- You need a Power BI licence to publish from My workspace, and a Pro or Premium Per User licence to publish from a shared workspace.
- You need edit permission on the semantic model and reshare permission on the report. You can’t publish a report that was shared with you or that you only see through an app.
- You can create only one embed code per report.
- The person who created the code must keep access to the report (and their licence) for the code to keep working. If they leave, an admin can transfer ownership of the code.
Viewers need nothing at all: no licence and no account.
How to publish a report to the web
Before you start, check that every table in the model, not just every visual, is fine to make public.
- Open the report in the Power BI service, in a workspace where you can edit it.
- Select File > Embed report > Publish to web (public).
- If you see “Contact your admin to enable embed code creation”, your admin hasn’t allowed you. Ask them, or use one of the secure options later in this guide.
- Select Create embed code, read the warning, and select Publish.
- In the Success dialog, choose the Size and Default page. You can add a Placeholder image so the page loads faster and visitors select View interactive content to load the report.
- Copy the link, or copy the HTML and paste it into your website.
The embed code looks like this (the key is shortened here):
<iframe title="Visitor numbers" width="800" height="506"
src="https://app.powerbi.com/view?r=eyJrIjoi..."
frameborder="0" allowFullScreen="true"></iframe>
For a 16:9 report page, Microsoft suggests 640 x 416, 800 x 506 or 960 x 596 pixels to avoid grey bars. Set the report’s page view (Fit to page, Fit to width or Actual size) before you publish so it fits the iframe.
Worked example: one report that’s safe to publish, one that isn’t
Imagine an organisation with two reports.
Visitor numbers is an import model with monthly visitor counts by site, already published in the annual report. It has no row-level security and no personal data. This is a reasonable Publish to web candidate: the admin adds the communications team’s security group to the tenant setting, one person creates the code, and the web team embeds it on the public website.
Regional sales uses row-level security so each manager sees only their region, and the model includes customer names. Publish to web isn’t available for it anyway because of the RLS, but even a copy without RLS shouldn’t go public. The right option is secure embed or the SharePoint web part on the sales intranet page, where people sign in and RLS applies.
The question to ask each time is not “is this page internal?” but “would we be happy for this data to be on the front page of our website?”
What Publish to web doesn’t support
Microsoft lists these cases as not supported. The embed code shows a Not supported status, or you can’t create one at all:
- Reports using row-level security.
- DirectQuery models (use import or composite mode instead).
- Live connections, including Analysis Services Tabular on-premises, Analysis Services Multidimensional and Azure Analysis Services.
- Reports using a shared semantic model in a different workspace, and shared or certified semantic models.
- Single sign-on data sources, including composite models on Power BI semantic models or Azure Analysis Services.
- Reports containing report-level DAX measures.
- Paginated reports, mobile layouts and multiple-language reports.
- R and Python visuals, and Q&A visuals.
- Exporting data from visuals in the published report.
How often published reports refresh
Changes you make to the report show up in the published version, and so do data refreshes. Power BI caches the report and its query results so thousands of people can view it at once:
- Cached data lasts for one hour from the time it’s retrieved.
- When an import model refreshes, the service clears the cache, so new data usually appears soon after the refresh. With many distinct queries it can take longer, and visitors may briefly see a mix of old and new values.
- Microsoft doesn’t recommend Publish to web for data that needs to refresh often. Keep refreshes few and schedule them out of hours.
- If a report gets too many queries in a short time, visitors can’t view it until the heavy usage passes. A placeholder image helps here.
To stop updates reaching the public report, turn off scheduled refresh on the semantic model. See our guide to Fabric capacity in Power BI if heavy public traffic is a concern.
How to find and delete embed codes
As a report owner
- Open the workspace that holds the report.
- Select the Settings gear > Manage embed codes.
- For each code you can get the code again or select Delete. Deleting it disables every link and iframe that uses it, straight away.
Each code has a status: Active, Blocked (Microsoft blocked it for breaking the terms of service), Not supported (for example the model now uses RLS) or Infringed (the owner is no longer allowed to create codes under the tenant setting).
As an admin
- Go to the admin portal > Embed codes.
- Review every code in the tenant, with the report, workspace and who published it. You can open each report to check what’s public.
- Select codes and choose Delete, or use Change ownership when the publisher has left.
Many organisations that think nobody uses Publish to web find a few codes when they first check this page, so it’s worth looking even if the setting is now off. Remember that turning the setting off hides reports but doesn’t delete the codes.
Secure alternatives to Publish to web
If the audience is your own staff, partners or customers, you want an option where viewers sign in and permissions and RLS apply.
Secure embed (Website or portal)
Select File > Embed report > Website or portal to get a link or iframe for an internal portal. Viewers must sign in and have permission to the report, and RLS and object-level security apply. You can set the opening page and add URL filters, but URL filters are a convenience, not a security feature. The host page must use HTTPS. Microsoft notes that browser security changes mean users may need to sign in more than once, and B2B guest accounts aren’t supported.
SharePoint Online web part
In a modern SharePoint page, add the Power BI web part and pick a report, or copy the link from File > Embed report > SharePoint Online. Sign-in is seamless, RLS applies, and you can embed a single visual. Adding the web part doesn’t give anyone access, so share the report or app with the same people who can see the page.
Embed for your customers (Power BI Embedded or Fabric)
For external users who shouldn’t need a Power BI account, developers build an app that authenticates with a service principal and generates embed tokens (the “app owns data” model). Viewers don’t need a licence, but you need capacity: an Azure A SKU (Power BI Embedded), a Fabric F SKU, or a Premium P or EM SKU. RLS can be passed in the embed token.
For secure embed and SharePoint, each viewer needs a Pro or Premium Per User licence unless the report and its semantic model are on Fabric F64 or higher or Premium capacity. Our post on what you get with free Power BI explains the licence rules in more detail.
Publish to web vs the alternatives
| Publish to web | Secure embed (Website or portal) | SharePoint Online web part | Embed for your customers | |
|---|---|---|---|---|
| Who can view | Anyone on the internet | Signed-in users with permission | Signed-in users with permission | Users of your app, authenticated by your app |
| Sign-in needed | No | Yes (Microsoft Entra ID) | Yes (usually automatic) | Your app’s own sign-in |
| Row-level security | Not supported | Applies | Applies | Applies via embed token |
| Viewer licence | None | Pro/PPU, or F64+/Premium capacity | Pro/PPU, or F64+/Premium capacity | None (capacity required) |
| Code needed | No | No (paste iframe) | No | Yes (developer work) |
| Admin control | Publish to web tenant setting, Embed codes page | Report permissions | Report and SharePoint permissions | Service principal and capacity settings |
| Good for | Data that’s already public | Internal portals and intranets | Team and intranet sites | Customer portals and SaaS apps |

Security checklist for admins
- Decide whether your organisation needs Publish to web at all. If not, set the tenant setting to Disabled.
- If you need it, enable it for a small, named security group (for example the communications team), not the entire organisation.
- If you only need to keep old public reports alive, allow existing embed codes only.
- Review the Embed codes page on a schedule (monthly or quarterly) and delete codes that are no longer needed or show internal data.
- Check the semantic model, not just the visuals, of every public report. Hidden columns and tables are still exposed.
- Keep public reports in their own workspace with an import model built only from public data.
- Transfer ownership of codes when publishers leave, or delete the codes.
- Remember that disabling the setting doesn’t delete codes: they come back if someone re-enables it.
- Point people who want to share internal reports to secure embed, SharePoint or apps. Our guides to apps and workspaces and workspace governance help here.
- Use row-level security for internal reports, and never rely on URL filters or hidden pages to protect data.
Common mistakes
- Embedding a public report on an intranet. The iframe works, but the link is public. Use secure embed or SharePoint.
- Thinking hidden data is safe. Viewers can reach detail-level data in the model even if no visual shows it.
- Disabling the setting and assuming the codes are gone. They’re only switched off.
- The public report suddenly stops working. Check whether the publisher left, lost their licence, or was removed from the allowed group (Infringed), or whether someone added RLS (Not supported).
- Expecting real-time data. Results are cached for up to an hour, so Publish to web isn’t suited to fast-changing data.
FAQ
Is Power BI Publish to web secure?
No, by design. There’s no sign-in and anyone with the link can see the report and its underlying data. Only use it for data you’re happy to make public.
Who can see a report published to the web?
Anyone on the internet who has the link or visits a page where it’s embedded. Viewers don’t need a Power BI account or licence.
Why can’t I see Publish to web in Power BI?
Your admin has disabled it, or hasn’t included you in the allowed security groups. You may see “Contact your admin to enable embed code creation”. It also isn’t available for reports shared with you, reports using RLS, or paginated reports.
What licence do I need to publish to web?
A Power BI licence to publish from My workspace, or Pro or Premium Per User to publish from a shared workspace. You also need edit rights on the model and reshare rights on the report.
How do I remove a report from the web?
Go to Settings > Manage embed codes in the workspace and select Delete. Admins can delete any code from the admin portal’s Embed codes page. Deleting is immediate and stops every existing link.
Can I use Publish to web with row-level security?
No. If you need each viewer to see different data, use secure embed, the SharePoint web part, or Power BI Embedded with an embed token.
Want your team to share Power BI reports the right way? Our Power BI Advanced course covers workspaces, security and sharing, and you can see all our Power BI training options.


