Skip to content

Users

13 endpoints in this module.

Method Path Auth Permissions Roles Description
GET /api/roles jwt ROLES_READ List all roles (system + tenant)
GET /api/roles/:id jwt ROLES_READ Get role by ID
POST /api/roles jwt ROLES_WRITE Create custom role
PATCH /api/roles/:id jwt ROLES_WRITE Update custom role
DELETE /api/roles/:id jwt ROLES_WRITE Delete custom role

Source: apps/api/src/modules/users/roles.controller.ts

Method Path Auth Permissions Roles Description
GET /api/users/me jwt USERS_READ Get current user profile
GET /api/users jwt USERS_READ List all users for tenant (cursor pagination optional)
GET /api/users/:id jwt USERS_READ Get user by ID
POST /api/users jwt USERS_WRITE Create new user (invitation)
PATCH /api/users/:id jwt USERS_WRITE Update user
DELETE /api/users/:id jwt USERS_DELETE Soft delete user
POST /api/users/:id/roles jwt USERS_WRITE Assign roles to user
POST /api/users/:id/reset-password jwt USERS_WRITE Reset user password

Source: apps/api/src/modules/users/users.controller.ts