Search code examples
keycloakkeycloak-rest-api

Problem with updating user using keycloak rest api


I have a problem with updating user using keycloak rest api, neither my requests work.

For example, I'm trying to get all realm users based on docs. I send get-request on this endpoint

http://keycloak.my/auth/realms/my_realm/account/users

but get 404 error

How to make it work? Why do I get 404, if I take this endpoint from docs?


Solution

  • This URL:

    http://keycloak.my/auth/realms/my_realm/account/users

    is incorrect.

    The correct one is:

    http://keycloak.my/auth/admin/realms/my_realm/account/users

    For all those endpoints the base URL is ${KeycloakIP}/auth/admin/