You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey all - I tried to make a PR myself but access was denied.
In the Keycloak admin panel under User > User Details, there is a toggle to view/hide 'Inherted' roles (roles inherited from composite roles - in this case roles that come from a group mapping to multiple roles).
The method get_realm_roles_of_user() does not return these, and it took me a long time to figure out that I needed to use get_composite_realm_roles_of_user() to access these roles.
It would be really helpful if the (documentation description for get_composite_realm_roles_of_user)[https://python-keycloak.readthedocs.io/en/latest/reference/keycloak/index.html#keycloak.KeycloakAdmin.get_composite_realm_roles_of_user] specified that the endpoint also includes roles Inherited from composites. If this were the case I would have saved hours.
I've been working with Keycloak for about 8 months now and it is a steep learning curve, but I would like to help alleviate the challenges for others as much as I can.
The description currently reads:
"Get all composite (i.e. implicit) realm roles for a user."
I think something like this should be appended: "Includes roles inherited from composites."
Thanks everyone.
The text was updated successfully, but these errors were encountered:
Hey all - I tried to make a PR myself but access was denied.
In the Keycloak admin panel under User > User Details, there is a toggle to view/hide 'Inherted' roles (roles inherited from composite roles - in this case roles that come from a group mapping to multiple roles).
The method get_realm_roles_of_user() does not return these, and it took me a long time to figure out that I needed to use get_composite_realm_roles_of_user() to access these roles.
It would be really helpful if the (documentation description for get_composite_realm_roles_of_user)[https://python-keycloak.readthedocs.io/en/latest/reference/keycloak/index.html#keycloak.KeycloakAdmin.get_composite_realm_roles_of_user] specified that the endpoint also includes roles Inherited from composites. If this were the case I would have saved hours.
I've been working with Keycloak for about 8 months now and it is a steep learning curve, but I would like to help alleviate the challenges for others as much as I can.
The description currently reads:
"Get all composite (i.e. implicit) realm roles for a user."
I think something like this should be appended: "Includes roles inherited from composites."
Thanks everyone.
The text was updated successfully, but these errors were encountered: