Challenge Summary:
I want to do some level of role-based access control for my data as per below.
Here is my setup:
Table 1 (Contacts) - with columns Name, Phone, Address, Country etc…
Table 2 (Volunteers) - Names, Email Address, Team(s) they are part of by country etc… A volunteer might just be part of one Team (i.e. USA) or multiple Teams (i.e. USA, UK or ALL).
The two tables are not related to each other but can be if absolutely required.
Here is the problem I am trying to solve:
Once the volunteer opens the app, they should only see contacts that are in the country or countries the volunteer as been assigned to.
For example,
My approach and where I need help:
Based on above, I thought the best way to do this might be to:
Create a slice where an expression filters data by:
Any help would be greatly appreciated.
Thank you,
Solved! Go to Solution.
Thank you Steve. This is perfect. Works exactly as intended.
User | Count |
---|---|
35 | |
31 | |
30 | |
19 | |
17 |