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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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

2 REPLIES 2
pedroEmb
New Member

thanks! Sorry to delay for answering. I read your suggestion but forgot to reply. The IT from my company forbidden to proced on this way, but some tests showed that your suggestion worked out.

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.