What I am really after is a security set up that is specific to 1) the user role and 2) the job type.
The hierarchy is: “Admin” = see everything; “Manager” = see everything, add/delete customers, team, members, jobs, but can’t alter the app; “Project Manager”, can add/delete jobs, see all job type “projects” only, no need to see job type “routine”, and see all customers; “Driver” = see only jobs and customers assigned to driver either “project” or “routine”.
Job Types are “Routine”, “Project” and “Sales”
I would like to add a salesman role; however, trying to work in the salesman column, i.e. [Salesman].[Role]=USEREMAIL()…well let’s just say I wouldn’t know where to begin.
I tried using:
IFS([Job Type]=”Routine”, IFS(ANY(Current_User[Role])=“Admin”,TRUE,
ANY(Current_User[Role])=“Manager”, OR([Driver ID]=USEREMAIL(), AND([Driver ID].[Branch]=ANY(Current_User[Branch]), [Driver ID].[Role]=“Driver”,[Driver ID].[Role]=”Project Manager”)),
[Job Type]=”Project”,
IFS(ANY(Current_User[Role])=“Admin”,TRUE,
ANY(Current_User[Role])=“Manager”, OR([Driver ID]=USEREMAIL(), AND([Driver ID].[Branch]=ANY(Current_User[Branch]), [Driver ID].[Role]=“Driver”,[Driver ID].[Role]=”Project Manager”)),
ANY(Current_User[Role])=”Project Manager”, OR([Driver ID]=USEREMAIL(), AND([Driver ID].[Branch]=ANY(Current_User[Branch]), [Driver ID].[Role]=”Driver”)),
TRUE,
[Driver ID]=USEREMAIL()))
No luck.