Ok thanks sorry about that. I think it was versión mismatch with my library
El 27 sept. 2017 3:45 a. m., "Thomas Darimont" <
this is more a question for the keycloak-user mailing list.
Apart form that you need to assign the "manage-user" (and potentially
view-clients) role for realm-management.
2017-09-26 22:37 GMT+02:00 Juan Diego <juandiego83(a)gmail.com>:
> I am trying manage users from my java back-end.
> I just created a user in my master realm, added a client role of
> myrealm-realm to that user. I added manage-client, manage-users,
> view-realm to the assigned roles.
> But I get this,
> Caused by: javax.ws.rs.NotAuthorizedException: HTTP 401 Unauthorized
> So I tried with my main admin user(the one created when I installed), and
> it logs.
> And I get status 403. What permission should I add. What am I missing?
> keycloak-dev mailing list