Users
Delete User
Removes a user from the organization.
DELETE /api/users/:id
Guards
- You cannot delete yourself.
- The last active admin of an organization cannot be deleted. Promote another user to
adminfirst. - A user who is a global admin or global supporter can only be deleted by a global admin.
Common errors
400 Bad Requestwithdata.code: "selfDeletionNotAllowed"when the target is your own account400 Bad Requestwithdata.code: "lastAdminProtected"when the user is the organization's last active admin403 Forbiddenwithdata.code: "globalUserProtected"when a tenant admin tries to delete a global admin or global supporter404 Not Foundwhen the user does not exist in your organization
Response
{ "success": true }