Forum Discussion
Dynamic RLS
Hi,
Say like 2 tables.
1 is fact with unique accounts and its transactions.
2 is accountid and email ids.
an account can be shared with multiple users, so table 2 will have many records.
For an instance,
Table 1:
Account ID
1
2
3
Table 2:
Accountid EmailId
Like this.
so now i want to fapply RLS based on user login.
If J login he should see his accounts, if B login he should see his accounts etc..
i tried few measures like this but not working.
Let the data model do the work. Link the tables, make sure the filter direction is pointing from accounts to transactions, and put the RLS on the accounts table with a simple formula:
[Emailid]=USERPRINCIPALNAME()
12 Replies
- lbendlinSuper User
Let the data model do the work. Link the tables, make sure the filter direction is pointing from accounts to transactions, and put the RLS on the accounts table with a simple formula:
[Emailid]=USERPRINCIPALNAME()
- AnonymousNot applicable
There is no emailid field in accounta table, that is soo simple RLS, that doesn't work here.
we need to virtually filter the accounts table data based on user login. User email and his accounts are in table 2.
kindly give me a solution.
- mwegenerMost Valuable Professional
- AnonymousNot applicable
Hi Anonymous ,
See if these help.
https://radacad.com/what-do-you-need-to-implement-dynamic-row-level-security-in-power-bi
https://radacad.com/show-the-information-but-not-the-details-power-bi-data-masking
Regards,
Harsh Nathani
Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)
- AnonymousNot applicable
Hi Harsh, i tried thise radcad blogs, my scenario is not suited however as you see above measures with filter condition, i tried similar to those blogs.