Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Sign up nowGet Fabric certified for FREE! Don't miss your chance! Learn more
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?
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 65 | |
| 65 | |
| 45 | |
| 21 | |
| 18 |
| User | Count |
|---|---|
| 115 | |
| 114 | |
| 38 | |
| 36 | |
| 26 |