March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe 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
HI,
I have recently configured our on-prem report server, created some reports and TRIED applying RLS on the same reports unsuccessfully. RLS does work when I try VIEW AS on the desktop app but when I deploy it on the portal and run the report, the values are just blank.
Here is the premise:
I have the following table to control access to certain data called, ACCESS CONTROL.
User | Company | Store
DOMAIN\user.name | MyCompany 1 | MyStore 1
DOMAIN\user.name2 | MyCompany 1 | MyStore 2
I have also setup a measure to check for the current user,
So, in the end did I miss something which is why me slicer is not showing correctly. I would appreciate all input regarding this matter.
Solved! Go to Solution.
I finally found the issue and corrected it and it finally works.
First of all, this DAX website, https://dax.guide/username/ states that USERNAME() returns DOMAIN\username and based on this my table checks for DOMAIN\username. Now, I have added a CARD VISUAL on my report to show USERNAME() and lo and behold, on the desktop app, it shows DOMAIN\username but on the portal it shows username@DOMAIN.COM.
Thanks @alosada for all you inputs. Surely your replies guided me in the right direction.
I finally found the issue and corrected it and it finally works.
First of all, this DAX website, https://dax.guide/username/ states that USERNAME() returns DOMAIN\username and based on this my table checks for DOMAIN\username. Now, I have added a CARD VISUAL on my report to show USERNAME() and lo and behold, on the desktop app, it shows DOMAIN\username but on the portal it shows username@DOMAIN.COM.
Thanks @alosada for all you inputs. Surely your replies guided me in the right direction.
hi!
When using dynamic RLS by username() you should apply this RLS in Power BI Desktop as follows:
- Select other user option as well, and enter the desired email.
There you will see if the RLS is really doing it's job.
What I also recommend you is to use directly the USERNAME() function in the role DAX expression.
@alosadaThanks for your input. 🙂
I have done this earlier and RLS still works on the desktop if I select both OTHER USER and PERMISSIONS. 😞
And that happens to you or the user you are trying to apply RLS?
I have setup two users and both appear correctly in the desktop app when i enter the user as DOMAIN\user.name in OTHER USER.
And on the portal that happens to all users or only you?
Have you trying deleting the dahsboard from the portal and reuploading it? (not rewriting)
I prayed so hard hoping that this is the soultion but alas, I deleted the report, reuplaoded it and then I configured the permissions in the report server and I still did not get any data on my slicer. 😞
Try to set up the Row Level Security property of your report. In my example below I selected the role "Authorizer" then added the members who will access the report
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
2 | |
2 | |
1 | |
1 | |
1 |
User | Count |
---|---|
5 | |
4 | |
4 | |
3 | |
2 |