<div dir="ltr">Unfortunatelly I think it&#39;s not possible right now.<br><br>Admin client uses Admin REST API, which isn&#39;t handling errors correctly.<br><br>If you try to reset a password using Admin interface you will get a generic error 500 saying &quot;Failed to reset user password&quot;.<br><br>In the server the stacktrace shows:<br>Caused by: org.jboss.resteasy.spi.UnhandledException: org.keycloak.models.ModelException: invalidPasswordMinLengthMessage<br><br>We could fill a JIRA to handle ModelException using JAX-RS exception handlers, so the response will have the correct error and we could show a better error message.</div><br><div class="gmail_quote">On Wed, May 6, 2015 at 2:10 PM Benjamin Hansmann [alphaApps] &lt;<a href="mailto:b.hansmann@alphaapps.de">b.hansmann@alphaapps.de</a>&gt; wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Is one able to get an error message from the resetPassword method of<br>
admin-client if it somehow failed to reset the password, like when the<br>
password is too short or does not comply with the password policy?<br>
<br>
It throws an InternalServerErrorException in that case. On the server<br>
side there seems to be a ModelException:<br>
invalidPasswordMinLengthMessage. That information is lost...<br>
<br>
<br>
_______________________________________________<br>
keycloak-user mailing list<br>
<a href="mailto:keycloak-user@lists.jboss.org" target="_blank">keycloak-user@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br>
</blockquote></div>