Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
I am trying to have a report that would automatically restrict access to users if their valid to date has expired.
As the base for secuirity i have a 3 column table.
The User and ValidToDate column are imported from an independent source and AccessColumn is conditional on the ValidToDate column. 1 being good to go and 0 being no access.
I have the role Viewer set up to check if the AccessColumn value is 1 and the user is listed. If both conditions are filled it should grant access. But my problem is that i can't get it to work. It seems to be stuck in the open position for all the users.
Any tips would be appreciated!
Solved! Go to Solution.
What do you mean by can't get it work and stuck in the open position for all the users? Can you explain it more.
"If both conditions are filled it should grant access. " I don't really get that sense or I misunderstood. In your sample, RLS checks users account name and the Valid to date, if both matches the viewer should only see the rows that matches the conditions. In you case, viewers should see nothing.
Please refer to the doc for how to get RLS work: https://docs.microsoft.com/en-us/power-bi/admin/service-admin-rls#:~:text=Row-level%20security%20%28....
Paul Zheng _ Community Support Team
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
What do you mean by can't get it work and stuck in the open position for all the users? Can you explain it more.
"If both conditions are filled it should grant access. " I don't really get that sense or I misunderstood. In your sample, RLS checks users account name and the Valid to date, if both matches the viewer should only see the rows that matches the conditions. In you case, viewers should see nothing.
Please refer to the doc for how to get RLS work: https://docs.microsoft.com/en-us/power-bi/admin/service-admin-rls#:~:text=Row-level%20security%20%28....
Paul Zheng _ Community Support Team
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@raulallas , I Need to try out something and check. refer to this video. It has explained RLS in detail.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 44 | |
| 43 | |
| 38 | |
| 18 | |
| 16 |
| User | Count |
|---|---|
| 67 | |
| 63 | |
| 30 | |
| 30 | |
| 23 |