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 this problem: I have created a SSAS Tabular 2016 model with a role called: "ThisIsASecurityRole". This "role" use the following DAX filtering: =Users[Login]=USERNAME() on the Users table (Table columns: PK, Login). The goal is to have a second table, the TimeRecorded table, filtered by users.
I use the following connection string:
"Data Source=ServerName\InstanceName;Initial Catalog=RowLevelSecuritySSASTabular;Roles=ThisIsASecurityRole".
When I connect to Power BI using the above connection string (I amend the connection string in PBRS/Manage/Data Sources/Connection String), the Power BI report works but do not filter the data.
Additional details:
I've created the Power BI report using a live connection to the SSAS Tabular 2016 described above
( Home/Get Data/Analysis Service/"Connect Live"/Model) using the appropriate Server and Database names. I then saved the report on PBRS. This is the only source in the power bi report.
What steps do you think are missing in order for Power BI to filter my report according to the role called 'ThisIsASecurityRole" defined in SSAS Tabular 2016?
Has this been resolved? We are facing the same issue where even a non admin group business users (assigned properly to the SSAS role> member) sees all the data unfiltered on a Power BI report through the gateway. The same user while access the SSAS model from an Excel pivot sees only limited data restricted to his/her role. Isn't this way to long to be still not resolved by PBI?
Hi,
I am facing the same issue and data is not getting filter with even hard coded value.
Tested Steps:
1. Browsed on SSAS Tabular Database on RDP loged in domain user.
2. On Security Contex model - 3 Options I) Current User II) Other User III) Roles
When i Select III option and filter works fine with selected Role
But when I try with I Or II options did not filter any data and shows all data and even i traced in sql profiler RLS.
Please share us any thing missing or share us some document if you have resolved .
Thanks,
Suresh
Have you tried using an acocunt that isn't a SSAS Admin?
In your session initialise event you get
The * indicates you are an admin on the model and as such the security may not be behaving the way you expect. We have to use separate dummy accounts when testing this stuff for this exact reason.
UP. So nobody has an answer to this query? This is the 3rd or 4th of such post - the others are created by other people - and nobody seem to know whether this is a bug or if there are way around this?
Hello, Guys.
Do you know if this issue still persist? I'm on a job exactly like this one, and I'm not facing a solution!
Thanks Indeed!
We've managed to implement this succesfully. I can't quite see what's different about what you have done and what we have done. I think they are more or less the same.
I do think you may be hitting an issue with the test account you are using. You say you are remoting onto a mahcine as that user, so it probably has fairly elevated privilages.
The info shown in the original posts includes
TextData = "*,thisisasecurityrole"
the * indicates the user is a member of the admins groups and this is probably causing your security to be ignored, hence the reason the user is seeing everything.
regards
That exactly was the problem in my case! The administrator role supersedes all other roles, eliminating all RLS conditions.
Many thanks for pointing that out!
Please let us know how you were able to resolve this issue?
How * has been removed in the roles and PBIRS consider only the role of login user?
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 | |
1 | |
1 | |
1 | |
1 |