I want to add client roles for a service account for an existing Keycloak client (service user is enabled on this client). I have managed to do this via the web panel (see screenshot).
However, I need to do this role assignment using Keycloak Java API client. I know how to connect the client and the general functionality of the Keycloak Java client.
Specifically, I want to add the client roles realm-management.view-users and realm-managment.query-users to the service account of the client "platform-administration".