Keycloak - Users in Role missing after sync with LDAP

Viewed 1560

I configured LDAP as User Federation (with role-ldap-mapper) and successfully imported users with their roles to Keycloak. When I go to Users->{user}->Role Mappings I see every roles that are signed to a user (imported from LDAP), but when I go to Roles->{role}->Users In Role I see nothing.

Is it a bug or a feature? Or maybe I configure something wrong?

Users roles

Empty Users in Roles

LDPA Role mapper configuration

2 Answers

I faced the same issue. I changed the Mode (inside LDAP role mapper) to Import instead of READ_ONLY and I was able to see users under a role.

Related