In the examples I've found for the Keycloak Admin Client, a method called "setEnabled" in the UserRepresentation class is mentioned to enable/disable the user.
Unfortunately, this method seemed to be removed in the latest versions, as the method is also not listed in the JavaDocs anymore.
So, my question is: how can I enable/disable a user in the newest versions of the Keycloak Admin Client (3.4.3.Final)?
Thanks and best regards, Chris
It is clearly possible to do using the API:
curl -v -X PUT -H "Content-Type: application/json" -H "Authorization: Bearer $token" --data "{\"enabled\": false}" "http://localhost:8080/auth/admin/realms/[my-realm]/users/[user-id]"