Update
PUT/admin/realms/:realmId/users
Updates a given User.
Request
Path Parameters
The realm's id.
The user's id
- application/json
Body
required
- Array [
- ]
The username of the user.
credentials object[]
Key-pair collection that is used to set the user password.
The property type (set to "password" to define the user password ).
The property value (the user's password if the "type" field is set to "password").
Boolean representing if user is enabled or not. Not to be confused with the emailVerified field that represents whether the user has verified the email. Recommended to set this field to true by default and update to false to disable the user.
Informs if the email of the user has been verified. Can be set to false initially and will be set to true once the new users verify their email addresses.
The first name of the user.
The last name of the user.
Responses
- 200
- 401
- 404
OK
- application/json
- Schema
- Example (from schema)
Schema
The id of the user.
The username of the user.
Boolean representing if user is enabled or not.
Boolean representing if time-based OTP is enabled or not.
Informs if the email of the user has been verified.
The first name of the user.
The last name of the user.
The email of the user.
Possible values: [VERIFY_EMAIL
, UPDATE_PROFILE
, CONFIGURE_TOTP
, UPDATE_PASSWORD
, TERMS_AND_CONDITIONS
]
Actions a user must perform during the authentication process.
{
"id": "string",
"origin": "string",
"createdTimestamp": 0,
"username": "string",
"enabled": true,
"totp": true,
"emailVerified": true,
"firstName": "string",
"lastName": "string",
"email": "string",
"serviceAccountClientId": "string",
"groups": [
null
],
"requiredActions": [
null
]
}
Unauthorized client
Not found