Imagine I have a role “Mayor”. Now I want to assign this role to my users mentioning which city this user is its mayor. For example, user A is the mayor of city C1 and user B is the mayor of C2. I tried handling this with role attributes, but attributes cannon be changed in assigning roles to users. So it was impossible.
Does anyone have any idea how can I handle this in Keycloak?