Others

How to Securely Embed Power BI Reports on a Website

Olivia MillerOlivia Miller Oct 20, 2026 869 views

Question details

The user needs to securely embed a Power BI report into a website or portal while reliably restricting access to unauthorized visitors.

How to Securely Embed Power BI Reports on a Website
Product
Power BI
Device & OS
not provided
Scenario
Publishing a data visualization or report to a specific company website or portal domain securely.
Observed behavior
The standard 'Publish to web' feature generates a public link accessible to anyone, failing to restrict access to a specific organization or website domain.
Before you start

Verify your current Power BI licensing (Pro, Premium, or Report Server) and ensure you have administrative access to edit your website's HTML code.

Solution 1Recommended

Use Secure Embedding with Authentication

The most reliable method to restrict report access is using the secure embed option, which requires viewers to authenticate.

This method ensures that only authorized users with appropriate permissions can view the embedded report. It avoids the severe data exposure risks associated with public 'Publish to web' links.

1
Open the report in Power BI service

Navigate to the Power BI service online and open the specific report you want to embed.

2
Select the secure embed option

Go to the 'File' menu, select 'Embed report', and click on 'Website or portal'.

3
Copy the embed code

A dialog box will appear. Copy the provided iframe code or link.

4
Paste into your website

Paste the iframe code into your website's HTML. Viewers will be prompted to sign in with their Microsoft credentials to view the report.

Use Secure Embedding with Authentication
Licensing Requirements: Viewers must have a Power BI Pro or Premium Per User (PPU) license, unless the report is hosted in a Power BI Premium capacity.
Free Microsoft Office alternative

Looking for a Lightweight Office Suite? Try WPS Office

While Power BI handles complex data embedding, WPS Office provides an excellent, free alternative to Microsoft Office for your daily document, spreadsheet, and presentation tasks. It features a familiar interface, seamless migration, and outstanding compatibility with Microsoft formats.

  1. 1. Download the software: Visit the official WPS Office website and download the free installer.
  2. 2. Install and launch: Run the installer. The lightweight installation takes only minutes.
  3. 3. Open your files: Launch WPS Office and directly open any existing Microsoft Office files with perfect formatting preservation.
Completely free and lightweight with fast loading timesFully compatible with Microsoft Excel (.xlsx), Word (.docx), and PowerPoint (.pptx) formatsAll-in-one tabbed interface for seamless multitasking across documentsBuilt-in AI tools to instantly boost your document and spreadsheet productivity
QA img-9

Frequently Asked Questions

Why shouldn't I use 'Publish to web' for internal company reports?

The 'Publish to web' feature generates a public, unauthenticated link. Anyone who obtains this link can view and share your report, meaning your confidential data is exposed to the public internet and cannot be restricted to your specific domain.

Can external users view my embedded Power BI report without a license?

If you use the cloud-based Power BI service, viewers typically need a license unless the workspace is backed by a Power BI Premium capacity. Alternatively, using the on-premises Power BI Report Server allows viewers to access reports without individual cloud licenses.

How do I restrict a Power BI report to only my website's domain?

Power BI does not natively restrict access by website domain through 'Publish to web'. You must use the 'Embed report > Website or portal' option, which relies on user Microsoft authentication and permissions to secure the report regardless of where the iframe is placed.