[keycloak-user] user group management from servlet app

Stian Thorgersen sthorger at redhat.com
Mon Jan 2 09:30:12 EST 2017


You can use a group membership mapper on the client that will add the group
details to the token. After that you can obtain it from
KeycloakSecurityContext.getToken().getOtherClaims().get("claimName").

You can obviously only view and not manage groups from the token. To manage
groups you'll need to use the admin rest api.

On 26 December 2016 at 04:31, <smichea at gmail.com> wrote:

> Hi all,
>
> Is there a way to access/manage groups of a user from the
> KeycloakSecurityContext obtained in a servlet ?
>
> Thank you,
> Sebastien
>
> _______________________________________________
> 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