[keycloak-user] Get roles programatically based on username

Stian Thorgersen sthorger at redhat.com
Tue Oct 24 03:23:01 EDT 2017


Yes, there's a separate role mapping endpoint. Look at the API docs or the
calls made by the admin console.

On 24 Oct 2017 7:17 am, "Sajid Chauhan" <sajid at theinnovationinc.co> wrote:

> Dear All,
>
> We have tried to fetch the role of a user from UserRepresentation and
> UserResource but the roles are always null. Is there a way to
> programatically get the role of the user?
>
> Thanks and regards,
> Sajid
> _______________________________________________
> keycloak-user mailing list
> keycloak-user at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-user
>


More information about the keycloak-user mailing list