Create a new user in any account (superadmin only).
Creates a user with the specified email, password, account, and role. For password-based users, the password must meet security requirements. For OAuth/SAML users, a random unknowable password is auto-generated.
Request schema for creating a new user.
This is used by superadmins to create users in any account. For OAuth/SAML users, password is optional and will be auto-generated.
User's email address
Account ID (UUID)
36Role ID (must exist)
x >= 1User's password (optional for OAuth/SAML users)
1Whether the user can log in
Authentication provider type ('password', 'oauth', 'saml')
Specific provider name (e.g., 'google', 'github')
External provider's user ID
Email from external provider
Additional profile data from external provider
Successful Response
Response schema for a single user.
Includes user details along with related account and role information.
User ID
User's email address
Account ID (UUID)
Human-readable account code in XX#### format (e.g., AB1234)
Account display name
Role ID
Role name
Whether the user can log in
Authentication provider type ('password', 'oauth', 'saml')
Whether the user's email is verified
When the user was created
Specific provider name (e.g., 'google', 'github')
External provider's user ID
Email from external provider
Additional profile data from external provider
When the email was verified
Last successful login