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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
v-yiruan-msft
Community Support
Community Support

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

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-yiruan-msft
Community Support
Community Support

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

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
July 2024 Power BI Update

Power BI Monthly Update - July 2024

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