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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Anonymous
Not applicable

Dynamics RLS not working in PowerBI Service

I configured dynamic RLS in PowerBI Desktop, and it works flawlessly; everything is as expected. I get errors when I try to enter an email using the "Now viewing as" feature online. I'm not sure what the difference is between the two. According to my understanding, because it is dynamic, I do not need to add any users to the group online. However, when I enter an email address to test it, it still does not work. Is this normal for some reason?

 

Here are the screenshots: 

 

JustineDXC_0-1669019659969.png

 

But when I add their names to the RSL I've set up here, they can view the report. Am I missing something? This is more on the Static RLS, right?

 

JustineDXC_1-1669019715773.png

 

1 ACCEPTED SOLUTION
v-henryk-mstf
Community Support
Community Support

Hi @Anonymous ,

 

For dynamic rls, you cannot assign users to a role within the Power BI desktop. You assign them in the Power BI service. By using the username() or userprincipalname() DAX function and configuring the appropriate relationships.

[User] = USERPRINCIPALNAME()

 

Also have you previously defined roles and rules in the Power BI service, if so you will have to recreate them in Power BI Desktop.

vhenrykmstf_0-1669620600660.png

 

For more info, you can read below document:

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

Dynamic Row Level Security (Dynamic RLS) - Microsoft Power BI Community


If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your reply.


Best Regards,
Henry


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

4 REPLIES 4
dgdgdg122db
Helper II
Helper II

@Anonymous did you manage to solve this issue ? I have the same problem with RLS

v-henryk-mstf
Community Support
Community Support

Hi @Anonymous ,

 

For dynamic rls, you cannot assign users to a role within the Power BI desktop. You assign them in the Power BI service. By using the username() or userprincipalname() DAX function and configuring the appropriate relationships.

[User] = USERPRINCIPALNAME()

 

Also have you previously defined roles and rules in the Power BI service, if so you will have to recreate them in Power BI Desktop.

vhenrykmstf_0-1669620600660.png

 

For more info, you can read below document:

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

Dynamic Row Level Security (Dynamic RLS) - Microsoft Power BI Community


If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your reply.


Best Regards,
Henry


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

amitchandak
Super User
Super User

@Anonymous , You have assigned users to roles, to make sure RLS works properly

 

How to use Row Level Security (RLS): https://youtu.be/NfdIA0uS6Nk

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here
Anonymous
Not applicable

But I've properly configured it and it works for Power BI desktop. What could be the difference?

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.