Path: / admin / realms / {realm} / users / {username}

Get represenation of the user

Path parameters:
realm - realm name (not id!)
username - user name (not id!)

Sub-Resources
Resources
NameDescription
federated-identityList set of social logins associated with this user.
logoutRemove all user sessions associated with this user.
remove-totp
reset-passwordSet up a temporary password for this user.
reset-password-emailSend an email to the user with a link they can click to reset their password.
role-mappingsGet role mappings for this user
sessionsList set of sessions associated with this user.

Resource Methods
Method Summary
NameDescription
PUT /admin/realms/{realm}/users/{username}Update the user
GET /admin/realms/{realm}/users/{username}Get represenation of the user
DELETE /admin/realms/{realm}/users/{username}delete this user

Method Detail

PUT /admin/realms/{realm}/users/{username}

Update the user

HTTP Example:
PUT /admin/realms/{realm}/users/{username}
API Example:

UsersResource.updateUser({'realm': /* name realm name (not id!) */,
  'username': /* username user name (not id!) */,
  '$entity': /* rep */});

Input:
UserRepresentation
Output:
Response -
Consumes:
application/json

GET /admin/realms/{realm}/users/{username}

Get represenation of the user

HTTP Example:
GET /admin/realms/{realm}/users/{username}
API Example:

UsersResource.getUser({'realm': /* name realm name (not id!) */,
  'username': /* username username (not id!) */});

Output:
UserRepresentation -
Produces:
application/json

DELETE /admin/realms/{realm}/users/{username}

delete this user

HTTP Example:
DELETE /admin/realms/{realm}/users/{username}
API Example:

UsersResource.deleteUser({'realm': /* name realm name (not id!) */,
  'username': /* username username (not id!) */});

Output:
Response