Forum Discussion
Row level security
- Anonymous5 years ago
Hi Anonymous ,
You may refer to Row-level security (RLS) with Power BI.
According to your sample data. I create a role in the Manage roles as follows.
[Username] = username()The test is this.
You can check more details from here.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi thanks for the link; I did try to impelemnt the links you sent; but those are not for my case.
My user security dynamic looks like this. An employee ID can have multiple usernames.
| Username | employee_id |
| Domain\A | 1017 |
| Domainb\A | 1017 |
| Domain\B | 1019 |
| Domain\C | 2020 |
The rows Im trying to filter looks like this. If employee ID from above table matches with Manager_ID; then those rows should be seen.
| Employee | manager_id |
| X | 1017 |
| X | 1017 |
| Y | 1017 |
| Z | 1019 |
| E | 2020 |
Anonymous That error regarding multiple values generally means you need to wrap a column reference in an aggregation function like MAX or MIN. This may help: https://community.powerbi.com/t5/Quick-Measures-Gallery/Dynamic-Hierarchical-Row-Level-Security/m-p/889567#M406