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
manan17
Regular Visitor

RLS DAX not working online

Hi, Im trying to setup a simple rls on my data. 
I have many users, which must only see their own data on in the dataset. Each line of data, has an initial row in it. So I want to be able to only show that user, the data where he/she's initial is in it.
data.PNG

So I setup the role as following: manage_roles.PNG

 So the initial is changed to the email, so I can see if the user logged in, only can see his own data.

And it does work when I try to view as role:

 

view_roles.PNGviewing_as_role.PNG

 

But when I go online, and login as this user, and try to see the data in the web, it doesnt show. I get a 401, access denied http code. I have no idea how to make this work, please help me.

access denied.PNG

 

 

 

 

 

1 ACCEPTED SOLUTION

HI @manan17,

 

Maybe you can try to create a security group on office tenant, then add users which need to view this report with RLS to this group.

 

After these steps, you can enter to power bi and assign role to that group.

 

Row-level security (RLS) with Power BI

Add members

You can add a member to the role by typing in the email address, or name, of the user, security group or distribution list you want to add. This member has to be within your organization. You cannot add Groups created within Power BI.

 

Regards,

Xiaoxin Sheng

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

View solution in original post

5 REPLIES 5
v-shex-msft
Community Support
Community Support

Hi @manan17,

 

Can you confirm you have correctly assign role to him and modify his permission to read? Current RLS not works for dataset owner and admin or other edit permissions, it only works on read permission.

 

Row-level security (RLS) with Power BI

 

In addition, if you forget to assign role to him, he also can't view report.

 

Regards,

Xiaoxin Sheng

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

Hi, how do you add a role to him? Is that needed for every email user, for them to see a rls report?
It is indeed a read-only user. If I remove that, and grants them rights to edit, then they can see the report, but not only their own data, because rls only works with read-only users? 

I found it! Thank you very much. But is that needed for every emailadress, or can you make a group somehow? So i dont have to add every single one of them

Can you help with this? @v-shex-msft

HI @manan17,

 

Maybe you can try to create a security group on office tenant, then add users which need to view this report with RLS to this group.

 

After these steps, you can enter to power bi and assign role to that group.

 

Row-level security (RLS) with Power BI

Add members

You can add a member to the role by typing in the email address, or name, of the user, security group or distribution list you want to add. This member has to be within your organization. You cannot add Groups created within Power BI.

 

Regards,

Xiaoxin Sheng

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

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.