Roles and Access
The six user roles, the app each one lands in, and the gates the API enforces.
Roles
Every account has exactly one role, stored on the user as role. The value is set at sign-up and can later be changed only by an admin.
| Role | Value | Uses | Can do |
|---|---|---|---|
| Tenant | TENANT | Tenant web app, mobile app | Search, save listings, request inspections, pay, chat with agents, review properties |
| Landlord | LANDLORD | Dashboard, mobile app | Everything an agent can, as the owner of the listing; receives sale and rent proceeds |
| Agent | AGENT | Dashboard, mobile app | Create and manage listings, answer inspection and payment requests, earn commission |
| Lawyer | LAWYER | Lawyer portal, mobile app | Accept partnership invites, review listing documents, approve or reject listings |
| Developer | DEVELOPER | Dashboard | Treated like a listing owner at sign-up; no role-specific screens yet |
| Admin | ADMIN | Admin panel | Manage users, oversee inspections, resolve duplicate listings, withdraw platform earnings, change settings |
TENANT is the default role at sign-up. ADMIN cannot be chosen at sign-up: the first admin is seeded when the service starts, and further admins are promoted from the admin panel.
How the API decides
Three checks run in this order on a protected endpoint:
- Authentication. The
Authorization: Bearer <token>header must hold a valid access token. The token's user is loaded and attached to the request. See Authentication. - Role. Endpoints restricted to roles reject everyone else with
403. Admin endpoints requireADMIN; lawyer decisions requireLAWYER. Each endpoint page lists its roles. - Ownership and state. Most rules live here, in the controller: only the listing's landlord can edit it, only the buyer can release an escrow, only a funded escrow can be completed. Each endpoint page describes them.
Many endpoints rely on ownership, not role
A number of endpoints carry no role check at all and depend on ownership alone, and a few sensitive ones are public. The endpoint pages say so where it applies. Read the access line at the top of each page instead of assuming.
Email verification
A password account cannot sign in until its email is verified. Web sign-ups get a link; mobile sign-ups get a 4-digit code that lasts 15 minutes. Accounts created with Google or Apple are verified from the start.
KYC
Listing owners must pass identity verification before they can create a listing, including a draft.
| Status | Meaning |
|---|---|
PENDING | Created for every new agent and landlord. Nothing submitted yet. |
AWAITING_LIVENESS | The NIN matched in the two-step flow; the liveness step is not available yet. |
VERIFIED | The NIN lookup matched the account's name. isKYCVerified is true. |
REJECTED | The check failed. |
Today only a matching NIN verifies an account. A driver's licence or CAC lookup is stored but does not verify it, and BVN is not supported.
Where each role signs in
| App | Roles allowed | What happens to other roles |
|---|---|---|
| Tenant web app | Anyone | Listing owners are pointed to the dashboard |
| Dashboard | AGENT, LANDLORD, DEVELOPER | Lawyers are routed to the lawyer portal in the same app |
| Lawyer portal | LAWYER | Other roles are routed to the dashboard |
| Admin panel | ADMIN | Sign-in is refused |
| Mobile app | TENANT, AGENT, LANDLORD, LAWYER | The role picks the navigator the user lands in |
The guides for each app describe the exact guards and redirects.
HomeLink Hub