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

Remove all user sessions associated with this user. And, for all applications that have an admin URL, tell them to invalidate the sessions for this particular user.

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

Resource Methods
Method Summary
NameDescription
POST /admin/realms/{realm}/users/{username}/logoutRemove all user sessions associated with this user.

Method Detail

POST /admin/realms/{realm}/users/{username}/logout

Remove all user sessions associated with this user. And, for all applications that have an admin URL, tell them to invalidate the sessions for this particular user.

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

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

Output:
void