POST
/api/auth/registerGroup: AuthRegister new user (admin-provisioned)
Description
SUPER_ADMIN (or authorized HR) can create a new login/staff account for a company. Multi-company aware: companyId is taken from the JWT token.
Auth
Authorization: Bearer <SUPER_ADMIN token>Expected Input
JSON body: { email, firstName, lastName, role ("HR" | "STAFF" | "SUPER_ADMIN"), department?, position? }Output Shape
JSON: { success, message, data: { user: { id, email, firstName, lastName, role, department, position, companyId } } }Try this endpoint
// Response will appear here