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

Get Fabric certified for FREE! Don't miss your chance! Learn more

Reply
iqb
Helper III
Helper III

Get User Role in Power Query Editor

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?

 

 

 

2 REPLIES 2
Shaurya
Memorable Member
Memorable Member

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?

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

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.