Create new user
POST/api/v2/users
Create new user
Request
- application/json
Body
required
email stringrequired
username string
firstName string
lastName string
password string
Initial password. When omitted, an email is sent for the user to set their own password.
temporary boolean
When true, the user must change the password on next login
groupIds string[]
Group ids to add the user to on creation
groupNames string[]
Group names to add the user to on creation
Responses
- 201
- application/json
- Schema
- Example (from schema)
Schema
id string
email stringrequired
username string
firstName string
lastName string
roles string[]
groups string[]
Names of the Keycloak groups the user belongs to
{
"id": "string",
"email": "string",
"username": "string",
"firstName": "string",
"lastName": "string",
"roles": [
"string"
],
"groups": [
"string"
]
}
Loading...