Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

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

[email protected]                     1            pedro

[email protected]                     2            pedro

[email protected]                     1            Mario

[email protected]                     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

 

 

  

  • 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:

    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.

2 Replies

  • negi007's avatar
    negi007
    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.

     

     

  • v-janeyg-msft's avatar
    v-janeyg-msft
    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:

    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.