[keycloak-user] Unable to get list of client level roles - available roles

Jitendra Chouhan jitendrachouhan03 at gmail.com
Tue Sep 27 04:56:06 EDT 2016


Hi,

I am not able to get client level available roles in keycloak using
keycloak-admin-client.jar. Please find sample code i am using to get client
and then thought of getting available roles under a client.

ClientsResource clientsResource = getRealm().clients();
ClientRepresentation> clientsRepresentation = clientsResource.
findByClientId(appName);
clientRepresentation = clientsRepresentation.get(0);
clientRepresentation.getDefaultRoles();

With above code i am only getting default roles under a client but not all
available roles as there is no method available in ClientResource class.

Thanks,
Jitendra Chouhan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/keycloak-user/attachments/20160927/24a31b68/attachment.html 


More information about the keycloak-user mailing list