I’m currently using Keycloack REST API to create realm, clients, etc.
However, I can’t find any reference about the route to manage the client’s Service Account Roles in the Keycloack REST API documentation.
Do you know if such thing is possible?
Or is only manageable at Keycloack backoffice?
Everything is available in the Admin REST API. If it doesn’t appear in the documentation (it is sometimes incomplete), the best thing to do is make the change in the Admin UI while the Network tab of the developer console is open, and then look at the requests that were made.
Just for the record, the route to manage Service Account Roles is
/auth/admin/realms/#realmName#/users/#service-account-client-user-id#/role-mappings/clients/#client-id#/composite