I am working on developing an application for multiple companies.
I am hitting a wall on how to handle the user roles from within each company. I have seen user roles for various other applications, but none of them quite fit my scenario.
Companies
- Company A {
users {
admins {
admin1:{}
},
staff {
staff1:{}
},
drivers {
driver1:{}
}
}
},
- Company B {
...
}
For each company... - I want admins of a company to create other admins/staff/drivers - I want staff of a company to create other drivers - I want drivers to be the lowest, not able to create any users
I see no good way of accomplishing this task! Any help would be greatly appreciated!
Thanks!
Connor