I wasn’t sure how to go about limiting the
data that each user can see. Can you show me how to find more about
using the data roles? How do you assign a data role to a user?
What I’m trying to do:
Create an app where users belong to a company managed by an admin. The
relevant data to each company can only be seen if you belong to the
How I was going about it:
a) create a company data type. Include a company element on each of the
other data types (orders, products, clients). I was going to create
pages and repeating groups that only list the data if there is a match
between the company of the user and the company of the element.
b) somehow create a data role for each data type that would limit
everyones ability to see data if there is not a match between the
company of the user and the company of the element