Creating the role "restricted-access’ to a client works.
Users without this role assigned, can not login to the client.
Then i can manually assign the role for each client to the users. Then they can login into clients, which role they have assigned.
But… in my ldap (where users come from in keycloak) i’ve groupOfNames named “perm-app-_users” and “perm-app-_admins”
And when a user is member in one of those 2 ldap-groups it should get access to the app. In keycloak the user should get mapped the group(s) to the client-role “restricted-access” for
Is such a mapping possible? And how can i do this?
There’s no LDAP group to KC role mapper ootb.
But you can try to sync the LDAP groups to KC and assign the respective role(s) to this group. This way, the users in this group(s) will inherit the roles from the group.