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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Poojajunnu
Frequent Visitor

RLS Custom Message

Hi All,

If we don’t assign a role to a particular user, they will get an error when using measures with RLS.

1 ACCEPTED SOLUTION
v-saisrao-msft
Community Support
Community Support

Hi @Poojajunnu,

Thank you @amitchandak, for your insights.

Users who are not assigned to any RLS role will encounter an error, as Power BI requires each Viewer to have a role assigned once RLS is set up. To resolve this, make sure users are added to the correct RLS role in the dataset’s Security settings.

Row-level security (RLS) with Power BI - Microsoft Fabric | Microsoft Learn

Solved: Re: Why users who don't assign to RLS can't view t... - Microsoft Fabric Community

 

Thank you.

View solution in original post

5 REPLIES 5
v-saisrao-msft
Community Support
Community Support

Hi @Poojajunnu,

Checking in to see if your issue has been resolved. let us know if you still need any assistance.

 

Thank you.

v-saisrao-msft
Community Support
Community Support

Hi @Poojajunnu,

Checking in to see if your issue has been resolved. let us know if you still need any assistance.

 

Thank you.

Anand24
Super User
Super User

Hi @Poojajunnu,
This is an expected behaviour of Power BI if dynamic RLS is used. Dynamic RLS is when you use userprincipalname().

You will need to configure and create rls roles in order to cover the scenario where users need to see all data.

 

 

Give a Thumbs Up if this post helped you in any way and Mark This Post as Solution if it solved your query !!!

Proud To Be a Super User !!!
LinkedIn

v-saisrao-msft
Community Support
Community Support

Hi @Poojajunnu,

Thank you @amitchandak, for your insights.

Users who are not assigned to any RLS role will encounter an error, as Power BI requires each Viewer to have a role assigned once RLS is set up. To resolve this, make sure users are added to the correct RLS role in the dataset’s Security settings.

Row-level security (RLS) with Power BI - Microsoft Fabric | Microsoft Learn

Solved: Re: Why users who don't assign to RLS can't view t... - Microsoft Fabric Community

 

Thank you.

amitchandak
Super User
Super User

@Poojajunnu , if you have created a dynamic RLS role(with userprincipalname), they will not see data. If this has been used only in measure, they should not see data for that measure. 


Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.