<div dir="ltr">Hello group,<div><br></div><div>keycloak ships with the add-user-keycloak.sh script to create an initial realm admin user</div><div>with the provided username / password combination.</div><div><br></div><div>We&#39;re currently running this script every time when our keycloak docker container</div><div>starts which triggers a Unique Constraint Violation if the admin user has already been created </div><div>- which is what I would expect.</div><div><br></div><div>07:52:39,103 ERROR [org.keycloak.services] (ServerService Thread Pool -- 56) KC-SERVICES0010: Failed to add user &#39;admin&#39; to realm &#39;master&#39;: user with username exists<br></div><div><br></div><div>-&gt; Perhaphs an option like &quot;create if not exists&quot; would be nice.</div><div><br></div><div>Since we need to periodically change the password of that admin user I wonder how this should be</div><div>done. Since the add-user-keycloak.sh doesn&#39;t seem to provide a way to change a password the only way seems to be changing the admin password in the realm admin-console.</div><div><br></div><div>However it is easy to get locked out of Keycloak if one changes the password via the realm admin-console e.g. due to a typo...</div><div><br></div><div>Cheers,</div><div>Thomas</div></div>