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(a)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(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/keycloak-user