Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Keycloak: Could not find resource for full path

I am trying to get the REST API of keycloak to work.

Thanks to this post I was able to get the token. But when trying the example for the list of users in the first answer, I get the error:

"error": "RESTEASY003210: Could not find resource for full path: http://PATHTOCEAKLOAK:81/auth/user/realms/master/users"

Here my request with Postman:

enter image description here

As I am using a Bitnami-container the admin is called user that's why I am using /auth/user/ instead of /auth/admin/

like image 522
flololan Avatar asked Aug 31 '25 04:08

flololan


2 Answers

For those who are still facing this error and using 17.0+ version of Keycloak, there's a change in endpoints as per the official documentation. I resolved this issue by just using {realm}/user and omitting /auth in between.

like image 88
Akanksha_p Avatar answered Sep 07 '25 08:09

Akanksha_p


In addition to @Akanksha_p's answer, here is a command to get the token using curl:

curl -k -H "Content-Type: application/x-www-form-urlencoded" -d "client_id=your-client" -d "username=some-user" -d "password=hardpassword" -d "grant_type=password" -X POST https://your.fqdn.server:8443/realms/yourrealm/protocol/openid-connect/token
like image 25
Miguel Avatar answered Sep 07 '25 08:09

Miguel