Keycloak REST API - Service Account Roles missing

Hello there,

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?

Thank you in advance,
Best regards,

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.

1 Like

Thank you so much for your guidance!

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

1 Like