Use a Keycloak client role in a rule
Open the policy version (draft) in the editor.
On the stage, click + Add rule.
Set rule type to
role.In the Role name field, enter the role exactly as defined on the client (e.g.
PROGRAM_MANAGER).In the Client field, enter the
clientId(e.g.registry-staff-portal). Leave blank for a realm role.Save and activate.
AWE looks up the client by clientId, then queries that client's role members. Make sure the AWE service account has view-clients and view-users realm-management roles — see Deployment → Client-secret sync and service-account roles.
Last updated
Was this helpful?