Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Let's I have created 3 roles using role level security.
1) Admin
2) Employee
3) Employer
Now I have a power m query(direct query) as below (right click > advance editor).
let
SomVar = SomeValue,
Source = .....
in
Source
How can I get user role who is viewing the report/dashboard? I mean I need to know whether the user who is viewing is Admin or Employee or Employer?
Hi @iqb,
I believe this link might answer your problem.
https://learn.microsoft.com/en-us/power-bi/collaborate-share/service-usage-metrics
Mark this post as a solution if that works for you!
Check out this blog of mine: How to Export Telemetry Data from Azure IoT Central into Power BI
Sorry but how can I get the user role using this link?
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 |
|---|---|
| 61 | |
| 59 | |
| 42 | |
| 18 | |
| 15 |
| User | Count |
|---|---|
| 109 | |
| 102 | |
| 39 | |
| 29 | |
| 29 |