Skip to content

PRD: Employee management

ModuleUser ManagementPRD IDPRD-EMP-001
StatusReady to devFEATEMP
EpicPlaneBANA-1567
Date2026-05-25Versionv1.0
Packages@nx/identityURDEMP
SurfaceClient · Owner/Mgr
OwnerPhát Nguyễn

What Employee management is

Owners bring a merchant onto the platform and then need staff to run it. The Team section on the Client app is where an owner creates staff accounts, scopes each one to one or more merchants in the organizer, and off-boards them when needed - no more sharing one login or handing out access too broadly.

The staff table and permissions form reuse the existing role-merchant machinery (see Roles & Scoping): each employee gets one or more role-merchant pairs, with roles limited to the range between Customer and the system's highest ceiling.

The Grant login toggle

The Grant login toggle draws a clean line between two kinds of staff - people with their own sign-in account, and people who are only tracked in the system without needing to sign in yet - and that same toggle decides how off-boarding works: an employee with login access can be deactivated, one without it can only be removed.

One employee, from creation to off-boarding

StepWhat happens
1. CreateThe owner fills in the Personal info card, adds role-merchant pairs on the Permissions card
2. Grant login (optional)Turn on Grant login with a username → the employee can sign in right away
3. Grant login laterFor an employee without login access, turn on the toggle on the Edit screen → the system auto-sends set-password mail
4. OperateUpdate permissions, reset the password from the Security card when the employee forgets it
5. Off-boardAn employee with login access → deactivate; an employee without login access → remove from the staff table

Where it's easy to get wrong

Two guards block off-boarding the wrong person

An owner cannot remove themselves, and cannot remove an employee who currently holds the Owner role at any merchant - even when the action is otherwise validated against organizer and merchant ownership.

Proprietary and Confidential. Unauthorized copying, distribution, or use of this software is strictly prohibited.