Skip to content

User Roles ​

Two distinct sets of roles exist, and conflating them causes permission bugs.

Participants use the product. Administrative roles operate it. An administrative role is not a kind of user.

Participants ​

RoleResponsibility
PassengerRequests and uses compatible shared journeys
DriverPublishes an existing journey and accepts eligible requests

A person can be both. account_type records PASSENGER, DRIVER or BOTH.

Drivers hold two profiles when they are also passengers — driver_profiles and passenger_profiles — because driving attributes (licence, approval) and passenger preferences are different data. It is still one identity with one verification state.

Administrative roles ​

These map one-to-one onto the API RBAC roles in API Overview.

RoleResponsibilityAPI role
AdministratorRole assignment, policy activation, full accessSUPER_ADMIN
Compliance OperatorReviews policy and risk decisions, manages rulesCOMPLIANCE_ADMIN
Safety OperatorHandles incidents, emergency review, safety suspensionsSAFETY_ADMIN
Support AgentUser lookups, support actions, account restrictionsSUPPORT_AGENT
AnalystReporting and analytics — read-onlyANALYST

Least privilege applies at the endpoint level. An ANALYST has no route that can mutate a compliance rule, even though both roles can view the queue.

External role ​

RoleResponsibility
Regulatory AuthorityFuture reporting and integration, subject to agreement

Not a platform role. Access is role-based, least-privilege, audited, encrypted and time-limited where appropriate — see Regulatory API.

KHAWI — same route, go together.