Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi, So I’m embedding a Power BI report in an application and I’m trying to implement RowLevelSecurity in Power BI to restrict access to data based on the User Permissions.
Tables -
OR I can still group by UserId & Group to get it in the following way (why? please read-on)
A user can have access to one or more of these codes and these codes come from different groups. There is one catch though -
A User can have access defined using 1 or n groups. The access can be defined based on any of these codes (A User can have access to only BillTo or only Shipper or only Receiver or a combination of BillTo, Shipper or BillTo, Receiver or Receiver, Shipper codes or all 3)
See the expected result below to know the logic in its entirety -
I’m able to pass the UserId to Power BI in the embed token and filter the UserPermissions table based on the User login.
My next steps would be to -
I'm able to pass the User Id in the embed token & I already have an RLS in place with the help of a DAX query, but thtat's a very simplistic case. Any help on solving this is appreciated. Thanks in advance!!
Hi @shashanm
Could you look at dynamic RLS and see if that will work?
https://www.kasperonbi.com/power-bi-desktop-dynamic-security-cheat-sheet/
User | Count |
---|---|
36 | |
31 | |
28 | |
24 | |
23 |
User | Count |
---|---|
52 | |
49 | |
37 | |
36 | |
31 |