Keycloak Admin REST API returns "could not find resource for full path"

I set up a new development realm and created and configured a client rest-client. I am able to get an access token via http://localhost:8081/realms/development/protocol/openid-connect/token, but that is pretty much it.

All other endpoint described in the API doc here are just returning Could not find resource for full path.

Here is an example:

TOKEN=$(curl --silent  --data "client_id=rest-client" --data "client_secret=lM39TfopgHLhk4vd1ufJ7rUEAgh4A4wO"  --data "username=admin"  --data "password=demo" --data "grant_type=password" "http://localhost:8081/realms/development/protocol/openid-connect/token"  | jq -r ."access_token") &&  curl --silent  -H "Authorization: bearer $TOKEN" "http://localhost:8081/development/users"
{"error":"RESTEASY003210: Could not find resource for full path: http://localhost:8081/development/users"}

I am using the bitnami/keycloak:latest docker image (Server Version 18.0.2).
What do I do wrong?

Thank you for any help.

If your regular realm path is /realms/development, then you‘ll have to call the admin api at /admin/realms/development/…

2 Likes

i get the ÂĄe same error while trying to add already existing users to group but getting the that error
{“error”:“RESTEASY003210: Could not find resource for full path: https://host/admin/realms/my-realm/groups/my-group-id/members/user-id”} i dont know how to fix it ??? but the users alredy exist in keycloak i just want to add them to the group…