Realm Users
Create a realm user
Creates a user in the specified realm.
Required scope: realm-users:write
post/clusters/{cluster_id}/realms/{realm_name}/users
Request
- Base URL: http://localhost:8000
- URL: http://localhost:8000/clusters/{cluster_id}/realms/{realm_name}/users
- Auth: API key in header API-Key
Path parameters
cluster_idstring uuid required
realm_namestring required
Keycloak realm name (not ID). Must start with a letter; allows letters, digits, and hyphens.
Example:customer-portal
Headers
API-Version'2026-06-01.beta' required
Request body
Example request
{
"username": "john.doe",
"email": "john@example.com",
"first_name": "John",
"last_name": "Doe",
"temporary_password": "ChangeMe123",
"enabled": true,
"roles": [
"admin"
]
}Response
The request has succeeded and a new resource has been created as a result.
Example response
{
"id": "9f3f2e5c-9e3d-4b1d-9f53-2a8af5a5d9a1",
"username": "john.doe",
"email": "john@example.com",
"first_name": "John",
"last_name": "Doe",
"enabled": true,
"email_verified": true,
"organization": "Acme Corp"
}Changes
No recorded changes to this operation across all 1 revision of this API.