Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago

Row Level Security (managers vs Non managers)

Hi Experts,

I need A help on Row Level security. 

Case:

In the below table for the example, 

1. if Manager login into the report he/she can see the all Non Mangers(Is_Manager = 0) Data + His/Her Data Only.

2. If Non Manager login into the report he/she can see only his data.

Primary KeyNameIs_ManagerEmail

1

abc1[email protected]
2xyz1[email protected]
3pqr0[email protected]
4def0[email protected]

 

Thanks & Regards,

Madhu Babu

2 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Anonymous 

    This is exactly the dynamical RLS scenario, where users can only see their own data. Please refer the step by step guide: DAX USERPRINCIPALNAME - Use in RLS - Power BI Docs

     

    Since RLS only works on Viewers, you can just set the users' workspace role as Viewer and set the manager's role as member or above. Or just add the non mangers to the RLS security role.

     

     

    Paul Zheng _ Community Support Team
    If this post helps, please Accept it as the solution to help the other members find it more quickly.

  • Anonymous's avatar
    Anonymous
    Not applicable

    Thank You for the response. But you're solution was not met my criteria.