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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

OAuth 2.0 Bearer Token in PowerBI Embedded

Hi,

 

We are using PowerBI Desktop to develop reports with PowerBI Embedded for embedding the reports into our platform.

Is there a way I can pass the OAuth 2.0 Bearer Token from my front end to my PowerBI report?

Thanks.

 

Best regards,

Emily

 

3 REPLIES 3
amitchandak
Super User
Super User

@Anonymous , refer

https://docs.microsoft.com/en-us/power-bi/developer/automation/walkthrough-push-data-get-token

https://www.youtube.com/watch?v=f7HLyiAk-lQ

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

@amitchandak Thank you for reply. As we are not using Azure AD, I don't think the proposed solution in the article is helpful in our case.

To be more specific, the bearer token is my current login user token in our system / platform, and my PowerBI report is embedded in my front end. Our PowerBI report does not know the user information to be able to login and get the token from my authentication server, I would like to pass my user bearer token from my front end to PowerBI, so that PowerBI will add this bearer token to the header and call my RESTFul API endpoint.

For example, if the UserID in our system / platform is 123, then this user would be able to see the data only for themselves and they won't be able to see other people's data. What we want to achieve is to pass UserID=123 from our front end environment to PowerBI, so that PoweBI would be able to get the data only for UserID=123 when calling the RESTFul API endpoint and thus no need to concern about any Row Level Security settings in PowerBI.

Hi @Anonymous 

I'm afraid it will needs Azure AD to embed contents for customer.

https://docs.microsoft.com/en-us/power-bi/developer/embedded/embed-sample-for-customers

 

If your users have power bi pro account, you could embed reports in your internal portal or websites, then set role level security for users.

This would let users only see their own data.

https://powerbi.microsoft.com/en-us/blog/easily-embed-secure-power-bi-reports-in-your-internal-portals-or-websites/

https://community.powerbi.com/t5/Community-Blog/Dynamic-Row-Level-Security-Dynamic-RLS/ba-p/787399

 

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

 

 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.

Top Solution Authors