Create roles for client during client registration?

Hello everyone,

I’m basically stuck by KEYCLOAK-18311. I have a setup utility that is used to configure my clients in a Keycloak instance. This is done using the client registration API with an initial access token. Each client has one ore more roles. Previously, I added those roles to the client using default roles. This is no longer working as of Keycloak 13.1.

How can I create roles for clients using the client registration API?

I think it can be done using the admin API, but I think I need to pass admin credentials to use that API. As my utility program is run automatically without admin intervention, I rather not depend on admin credentials.

Hope anyone can give me advice in how to tackle this!

With kind regards,