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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.