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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
pedroEmb
New Member

user authentication needed when uses embed PowerBi

Hello everybody,
I have the following problem. We have a local server and maintain an internal portal for employee use. We are using Powerbi embed on the pages, but we are having problems recognizing the logged-in employee. We use Azure SSO, but we don't know how to make the embed identify that the user is logged in. The login procedure for this internal portal is: we use the Azure SSO method and they return whether it is authorized or not. However, when the employee enters the page, the screen below appears. Is there any API that allows me to log in or authenticate the employee simultaneously with the SSO of the portal or on the pages where the PowerBi embed is loaded? Would anyone have a suggested solution for this case? I would like to do it transparent without the employee notice or have to athenticate by him/her own.

pedroEmb_0-1718203507969.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @pedroEmb ,

To achieve a single sign-on experience, use the Embed in SharePoint Online option, or build a custom integration by using the user-owns-data embedding method.

Embed a report in a secure portal or website - Power BI | Microsoft Learn

 

powerbi - View Power BI Embed Report using Single Sign on - Stack Overflow


When the user's login to the app for the first time, you can get the access Token in response.

For Embedding any report, we need embed URL and access Token.

You can get the access Token from the above and it will be of token Type AAD.

Use this accessToken as Bearer token to hit the Get Report in Group REST API to get the Embed URL.


Best Regards

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @pedroEmb ,

To achieve a single sign-on experience, use the Embed in SharePoint Online option, or build a custom integration by using the user-owns-data embedding method.

Embed a report in a secure portal or website - Power BI | Microsoft Learn

 

powerbi - View Power BI Embed Report using Single Sign on - Stack Overflow


When the user's login to the app for the first time, you can get the access Token in response.

For Embedding any report, we need embed URL and access Token.

You can get the access Token from the above and it will be of token Type AAD.

Use this accessToken as Bearer token to hit the Get Report in Group REST API to get the Embed URL.


Best Regards

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.