cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
nbs333
Frequent Visitor

Dynamic RLS not working in Desktop or Service

Hi,

 

I am sure this is something simple but I can't seem to figure it out. I have dynamic RLS  set up using USERPRINCIPALNAME(). When I test with a user's email address it filters nothing. 

 

I created a slicer to test the filtering directly with the same user and it works. Any idea what the issue could be? I have a few other reports with similar data models that are exhibiting the same behavior.

 

 

nbs333_0-1663540031741.png

 

nbs333_1-1663540102341.png

 

nbs333_3-1663540272909.png

 

 

 

 

1 ACCEPTED SOLUTION
RicoZhou
Community Support
Community Support

Hi @nbs333 ,

 

By default, row-level security filtering uses single-directional filters, whether the relationships are set to single direction or bi-directional. You can manually enable bi-directional cross-filtering with row-level security by selecting the relationship and checking the Apply security filter in both directions checkbox. Note that if a table takes part in multiple bi-directional relationships you can only select this option for one of those relationships. Select this option when you've also implemented dynamic row-level security at the server level, where row-level security is based on username or login ID.

For more information, see Bidirectional cross-filtering using DirectQuery in Power BI Desktop and the Securing the Tabular BI Semantic Model technical article.

RicoZhou_0-1663565888277.png

 

Best Regards,
Rico Zhou

 

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

1 REPLY 1
RicoZhou
Community Support
Community Support

Hi @nbs333 ,

 

By default, row-level security filtering uses single-directional filters, whether the relationships are set to single direction or bi-directional. You can manually enable bi-directional cross-filtering with row-level security by selecting the relationship and checking the Apply security filter in both directions checkbox. Note that if a table takes part in multiple bi-directional relationships you can only select this option for one of those relationships. Select this option when you've also implemented dynamic row-level security at the server level, where row-level security is based on username or login ID.

For more information, see Bidirectional cross-filtering using DirectQuery in Power BI Desktop and the Securing the Tabular BI Semantic Model technical article.

RicoZhou_0-1663565888277.png

 

Best Regards,
Rico Zhou

 

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

Helpful resources

Announcements
November 2022 Update

Check it Out!

Click here to read more about the November 2022 updates!

Difinity Conference

Difinity Conference 2022

Difinity is the largest Microsoft Data, AI, Power BI, Power Platform and Business Applications Conference in New Zealand.

European Share Point Conference

European Share Point Conference

This conference returns live and in-person in Copenhagen this 28 November-01 December with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Microsoft 365 Conference â__ December 6-8, 2022

Microsoft 365 Conference - 06-08 December

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Top Solution Authors