Is there a possibility to overwrite the “preferred_username” of an OIDC client that seems to be auto generated by Keycloak? If I have a client with e.g. name “something”, by getting the token there I can see the “preferred_username” which has the value “service-account-something”.
Can someone point me to a solution? Is there a way to overwrite it e.g. by mapper or by implementing a SPI?