Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Rubenvw
Advocate I
Advocate I

Embed URL for displaying Power BI report (in iFrame) not working

Hi all,

 

Right now it is possible to display Power BI reports within SharePoint Online. The authentication will go automatically, based on the SP user that consumes the report. Every user that views the Power BI report within SharePoint Online needs to have a  Power BI Pro license.

 

Right now I would like to achieve the same, displaying a Power BI report within an iFrame using the following URL structure: https://app.powerbi.com/reportEmbed?reportId=<REPORTID>&amp;groupId=<GROUPID>&amp;language=nl-NL&amp...

 

Unfortunately this URL is not working when I try it outside SharePoint Online. Does someone know how I could create an iFrame that displays a Power BI report and authenticates the user automatically? So it is NOT an option to publish the report to web.

 

Thanks!

5 REPLIES 5
v-ljerr-msft
Employee
Employee

Hi @Rubenvw,


Unfortunately this URL is not working when I try it outside SharePoint Online. Does someone know how I could create an iFrame that displays a Power BI report and authenticates the user automatically? So it is NOT an option to publish the report to web. 

The embedded URL for SharePoint can only be used to embed interactive Power BI reports in SharePoint Online pages. 

 

In your scenario, you can try using Power BI Rest API to embed Power BI dashboards, reports and tiles into your own app(embedding with Power BI users) which can authenticate the user automatically. Smiley Happy

 

Reference:

What can developers do with Power BI

Embed your Power BI dashboards, reports and tiles

Power BI Developer samples

 

Regards

Anonymous
Not applicable

I am new to Power bi, could you please tell us, what is group id here?

When i generate the Embedded URL in the PowerBI service for SHarepoint online, i can't see groupid?

 

Hi @v-ljerr-msft

 

Thanks for your reply.

 

What I would like to achieve is embedding Power BI Tiles within a Dynamics 365 form. For examples: When I have an account form, I would like to display a Power BI tile that has been filtered based on the context (Filter: account = Contoso).

 

Is it also possible to achieve this using the Power BI REST API?

Hi @Rubenvw,

 

Yes, it could be possible. Power BI REST API Embedding also supports RLS. For more details, you can refer to this article. Smiley Happy

Row level security (RLS) can be used to restrict user access to data within dashboards, tiles, reports, and datasets. Multiple, different users can work with those same artifacts all while seeing different data.

 

Regards

I did it in an iframe and it worked perfectly. The code I used is below (cutting out work stuff)

 

<Style>

 

iframe {
position:absolute;
top:0;
right:0px;
width:100%;
height:100%;
box-sizing: border-box; -moz-box-sizing: border-box; -webkit-box-sizing: border-box;
}

</style>

 

<body style="margin:0px;padding:0px;">
    <iframe src="HTML Link here" name="test" style="overflow:hidden;" width="100%" height="100%" scrolling="no"></iframe>
</body>

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

Top Solution Authors