cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
amybirc77
Helper I
Helper I

Row Level Security not working

Hi All,

I creaated a report using PBI Desktop Optimized for Report Server. Source is SSAS CUBE (Multi dimensional). Cube has data from multiple states. In PBI Desktop I clickd on "Manage roles" and named it as Delaware and gave the value of State="Delaware". When I clicked on Views as and selected the role that I created it shows me data for Delaware only, but when I click on other user and select , either domain\username or username@corp.companyname.com it shows all data, please advice where I am going wrong?

Thanks

5 REPLIES 5
d_gosbell
Super User
Super User

@amybirc77 there does appear to be some new caching bug here.

 

If I deploy a new report I can see all the rows.

If I then add a role and add my test user to a role I can still see all rows.

 

But I can "fix" this if I re-start the service using the Report Server Configuration Manager.

 

Or if I delete the report from the portal and re-deploy it (and then re-add the user(s) to the roles)

 

I don't think this is something we can fix on this forum. I think you will need to raise a ticket with Microsoft Support.

d_gosbell
Super User
Super User

When you selected the other user did you also tick the role? When you are testing as another user in the View As screen you need to specify both the role and username.

@d_gosbell  yes I did, and in the below screen shot when i select the role I created 'perm' it only shows data for Delaware

amybirc77_0-1672926714574.png

 


@amybirc77 wrote:

@d_gosbell  yes I did, and in the below screen shot when i select the role I created 'perm' it only shows data for Delaware

 


No, you didn't. When testing as another user you must click "Other user" AND one or more of the roles. 

 

And normally when doing this you would have the role you tick setup with dynamic security (so it makes use of the USERPRINCIPALNAME() or USERNAME() functions). Because the link between a user and a role is stored on the server side it does not make sense to enter just a user when testing in desktop.

@d_gosbell  thanks it worked on the desktop end, when I deployed it to the report server and added the user to the role, it did not work , it is showing data for all the states. I followed this video (https://www.youtube.com/watch?v=OV_l6HXATGE&t=636s) and did exactly the same using USERNAME() AND USERPRINCIPALNAME().

Did not work.

Helpful resources

Announcements
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

MPPC 2023 PBI Carousel

Power Platform Conference-Power BI and Fabric Sessions

Join us Oct 1 - 6 in Las Vegas for the Microsoft Power Platform Conference.

Top Kudoed Authors