Showing results for 
Search instead for 
Did you mean: 
Helper I
Helper I

Test as role - connected raport


is it posible to test a role on connected raport in service. By default, role testing is run on a report created with the model. Can I change the report connected to the data model somehow?

Super User II
Super User II

So you are saying you have a workspace with a dataset and two reports that are based on the dataset.  Now you want to test the dataset's RLS against the second report?  Did I get that right?

Community Support
Community Support

HI @Lokisame,

AFAIK, RLS is a role-based row-level filter. You can change the assigned roles then users will view correspond contents filtered by the lastest role.

In addition, you can also consider configuring a dynamic RLS role based on the user name or other dynamic functions. (e.g. username, today...) They will extract the specific value based on the current user or system DateTime and apply the filter on it.

RLS with UserName() 

BTW, if your data source is AS tabular, you can also configure RLS filter on your database side:
Implement row-level security in an Analysis Services tabular model 

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Stay away from Username(), it behaves differently on the Desktop and the service. Always use UserPrincipalName().



Helpful resources

Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Community Conference

Microsoft Power Platform Communities

Check out the Winners!


Create an end-to-end data and analytics solution

Learn how Power BI works with the latest Azure data and analytics innovations at the digital event with Microsoft CEO Satya Nadella.

Top Solution Authors
Top Kudoed Authors