Keycloak json
Generate the Keycloak.json file with the Keycloak server and place it in the following location:
…\Server\tomcat-*\conf\keycloak.json
Extend the content of the Keycloak.json file with the following parameter and value:
"principal-attribute" : "preferred_username”