Forum Discussion
Row Level Security question
- Anonymous5 years ago
hi Anonymous - the security in the role you are creating should be
[Salesperson Team] = "Authorized Resller" || [ [Salesperson Team] = "Business Development" - as in the user should have access to Authorized Reseller OR Business development; you had previously set it up as an AND condition.
Please mark the post as a solution and provide a 👍 if my comment helped with solving your issue. Thanks!
Hi, Anonymous
It’s my pleasure to answer for you.
If you only create a role on the desktop to filter the people in your table who compound two conditions at the same time, like: [Team1] = "Direct Sales" && [Team2] = Indirect Sales, it is possible, but when you publish it to the service Later, the added role must also be a group or a member that meets both conditions.
If it doesn’t meet your requirements ,could you please share more details and share some sample data?
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.
Here is my RLS scenario:
I have a few managers that need to see salespeople in the two groups below. The "authorized reseller" team by itself works perfectly fine in the RLS environment. My hope was that I could just add the additional team (business development) by just adding && and the other team name. So something like: [Salesperson Team] = "Authorized Resller" && [ [Salesperson Team] = "Business Development". This does not work and ends up making everything disappear.
Is there a way to do this?
- Anonymous5 years agoNot applicable
hi Anonymous - the security in the role you are creating should be
[Salesperson Team] = "Authorized Resller" || [ [Salesperson Team] = "Business Development" - as in the user should have access to Authorized Reseller OR Business development; you had previously set it up as an AND condition.
Please mark the post as a solution and provide a 👍 if my comment helped with solving your issue. Thanks!
- Anonymous5 years agoNot applicable
Thanks Everyone Anonymous and v-janeyg-msft
Sumanth's solution was the easiest and ultimately what I needed but thanks to Jane as well...I might be able to use that idea in the near future.
- v-janeyg-msft5 years agoCommunity Support
Hi, Anonymous
According to your description, if you want to create one role to meet two conditions in one column, it is obviously not enough.
You can create two roles and filter separately in the same column, then add the corresponding groups to the two roles on the Power BI service.
Like this:
If you have other questions, 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.