Admin - Users
Create User
Create a new user account
POST
Authentication
This endpoint requires admin authentication and theusers:write permission.
Request Body
Username (minimum 1 character, trimmed)
Valid email address (trimmed)
Password (minimum 8 characters)
Language code (defaults to
DEFAULT_LANGUAGE env var or “en”)User role:
user or adminResponse
Created user information
Process
- Email uniqueness is verified
- Password is hashed using bcrypt (cost: 12)
- User account is created with email automatically verified
- Credential account is linked for authentication
- Welcome email is sent to the user (if email is configured)
Error Responses
- 409 Conflict: A user with this email already exists
- 400 Bad Request: Validation failed (invalid email, short password, etc.)
Notes
- Email is automatically marked as verified
- If
roleis “admin”,rootAdminis set to true - Password must meet minimum 8 character requirement
- Creation email may fail silently if email service is not configured