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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
Anonymous
Not applicable

Role Level Security

Hello

 

im new to RLS and having trouble.

What am trying to achieve is, based on the userprincipalname return data for the groups he is in.

unfortnantly i have to use username from fact_table to this bridge table below

 

Ex:

BRIDGE TABLE

Email  (userprincipalname)   |  Group | Username

pedro@gmail.com                     1            pedro

pedro@gmail.com                     2            pedro

Mario@gmail.com                     1            Mario

Joana@gmail.com                     1            Joana

 

What i want is that when pedro logs in, he sees data from his groups ( 1 and 2 ) while joana and mario only see data from group 1

 

 

  

1 ACCEPTED SOLUTION
v-janeyg-msft
Community Support
Community Support

Hi, @Anonymous 

 

It’s my pleasure to answer for you.

According to your description,I think you don't need to use 'UPN', you can create two roles filtering 'group=1'and 'group=2' in PBI desktop 'manage roles', then add members in PBI Service(role1:pedro,Mario,Joana email     role2:pedro).

Like this:4.png

5.png

Reference:Row-level security (RLS) with Power BI - Power BI | Microsoft Docs

If it doesn’t solve your problem, please feel free to ask me.

 

Best Regards

Janey Guo

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-janeyg-msft
Community Support
Community Support

Hi, @Anonymous 

 

It’s my pleasure to answer for you.

According to your description,I think you don't need to use 'UPN', you can create two roles filtering 'group=1'and 'group=2' in PBI desktop 'manage roles', then add members in PBI Service(role1:pedro,Mario,Joana email     role2:pedro).

Like this:4.png

5.png

Reference:Row-level security (RLS) with Power BI - Power BI | Microsoft Docs

If it doesn’t solve your problem, please feel free to ask me.

 

Best Regards

Janey Guo

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

negi007
Community Champion
Community Champion

@Anonymous 

You can create a role in your powerbi desktop under the modeling tab like below. Once you create the role, you can test the role as well in the powerbi desktop using View As option in the modelling tab.

 

negi007_0-1607699841810.png

 




Did I answer your question? Mark my post as a solution!
Appreciate your Kudos



Proud to be a Super User!


Follow me on linkedin

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

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.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.