Don't miss your chance to take exam DP-600 or DP-700 on us!
Request nowLearn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hi All,
I have a scenario where i need to generate the JWT token in power BI with the username logged into Power BI acccount and then call an API with this token to get data.
Based on the username logged into Power BI which is sent via JWT, We need to filter the data.
Could you please suggest a way to do this and also the code used for the same?
Thanks in Advance:
Nishanth
Hi @Anonymous ,
Did you mean Row-level security (RLS) with Power BI? Please refer to the online document.
https://docs.microsoft.com/en-us/power-bi/service-admin-rls
No, Am not looking into RLS for now.
In power BI, I need to generate the App token which has username details encoded in it. When a Single API with this token is called we will receive the data based on the username in the set token. Please specify a way to do this.
I tried Running R script in "Get Data" option then generated the token. But issue i found is i cant pass the value of userprinciplename() i,e logged in user of power BI to R script.
Thank you:
Nishanth
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 10 | |
| 9 | |
| 7 | |
| 5 | |
| 5 |