Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Lokisame
Helper I
Helper I

Test as role - connected raport

Hello, 

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?

4 REPLIES 4
v-shex-msft
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 

Regards,
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().

lbendlin
Super User
Super User

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?

Exactly

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors