[keycloak-user] filter group claim in token per client

Ronald Demneri ronald.demneri at amdtia.com
Fri Nov 2 06:30:39 EDT 2018


Hello everyone,

Is there a way to filter the groups a user is a member of per client, based on clientId (which is part of the group name(s) in AD). Let's say that user Ronald is member of  group_client1, group_client2 and group_client3, so using a group mapper, the token will contain a claim like group:["group_client1", "group_client2", "group_client3"]. Upon logging in to client1 app, I want to customize the group claim so that it contains only the respective group_client1 value.

Thanks in advance,

Ronald


More information about the keycloak-user mailing list