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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Regular Visitor

Power BI reail time access token



I'm using power bi rest APIs for getting users data and embeding his reports, dashboards etc on my web application. I'm using azure authentication on my web application which returns me user's access token, graph token etc on login.

I want to generate access token for power bi APIs dynamically depending on the logged in user. Currently I'm using the following method for generating power bi token, where username and password is mandatory so I used my personal username and password for the time being.




As I can get the username of logged in user but can't get his password so how can I get access token on run time according to any logged in user for accessing his power bi resources ?


I shall be thankful to you for you kind help.


Best Regards

Bilal Ahmad



Helpful resources

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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


Power BI Monthly Update - May 2024

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


Fabric certifications survey

Certification feedback opportunity for the community.