<div dir="ltr"><span style="font-size:12.8px">Hi Team</span><div style="font-size:12.8px">We are facing the problem with the user credentials clean up, the uses cases are two and are consisten </div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">1. From the <span class="gmail-il">Keycloak</span> Web Console, sometime if I remove more that one role at the same time, is happen the credential clean up. </div><div style="font-size:12.8px">2. After redeploy the server, the credential for some users are being clean up </div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">This is how the user credentials looks after the clean up </div><div style="font-size:12.8px"><div> &quot;credentials&quot; : [ </div><div>        {</div><div>            &quot;value&quot; : &quot;ZTA3VTu2d7X6Cl/<wbr>iSWKjGBGb5bJUFBto1EiOs8AjLj5rI<wbr>KkMo2Wzymgm8rdPP27LMBBovNw8nxp<wbr>Dvcp4tniCqw==&quot;</div><div>        }</div><div>    ],</div></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">The problem is that after that <span class="gmail-il">Keycloak</span> can no do anything with that user because the server start getting NullpointerException </div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><div>03:36:36,031 ERROR [io.undertow.request] (default task-5) UT005023: Exception handling request to /auth/admin/realms/<wbr>opencarwash/users/09c74660-<wbr>902c-441b-8892-f7dd560a7b83/<wbr>reset-<span class="gmail-il">password</span>: org.jboss.resteasy.spi.<wbr>UnhandledException: java.lang.NullPointerException</div><div><span style="white-space:pre-wrap">        </span>at org.jboss.resteasy.core.<wbr>ExceptionHandler.<wbr>handleApplicationException(<wbr>ExceptionHandler.java:76)</div><div><span style="white-space:pre-wrap">        </span>at org.jboss.resteasy.core.<wbr>ExceptionHandler.<wbr>handleException(<wbr>ExceptionHandler.java:212)</div><div><span style="white-space:pre-wrap">        </span>at org.jboss.resteasy.core.<wbr>SynchronousDispatcher.<wbr>writeException(<wbr>SynchronousDispatcher.java:<wbr>168)</div><div><span style="white-space:pre-wrap">        </span>at org.jboss.resteasy.core.<wbr>SynchronousDispatcher.invoke(<wbr>SynchronousDispatcher.java:<wbr>411)</div><div><span style="white-space:pre-wrap">        </span>at org.jboss.resteasy.core.<wbr>SynchronousDispatcher.invoke(<wbr>SynchronousDispatcher.java:<wbr>202)</div><div><span style="white-space:pre-wrap">        </span>at org.jboss.resteasy.plugins.<wbr>server.servlet.<wbr>ServletContainerDispatcher.<wbr>service(<wbr>ServletContainerDispatcher.<wbr>java:221)</div><div><span style="white-space:pre-wrap">        </span>at org.jboss.resteasy.plugins.<wbr>server.servlet.<wbr>HttpServletDispatcher.service(<wbr>HttpServletDispatcher.java:56)</div><div><span style="white-space:pre-wrap">        </span>at org.jboss.resteasy.plugins.<wbr>server.servlet.<wbr>HttpServletDispatcher.service(<wbr>HttpServletDispatcher.java:51)</div><div><span style="white-space:pre-wrap">        </span>at javax.servlet.http.<wbr>HttpServlet.service(<wbr>HttpServlet.java:790)</div><div><span style="white-space:pre-wrap">        </span>at io.undertow.servlet.handlers.<wbr>ServletHandler.handleRequest(<wbr>ServletHandler.java:85)</div><div><span style="white-space:pre-wrap">        </span>at io.undertow.servlet.handlers.<wbr>FilterHandler$FilterChainImpl.<wbr>doFilter(FilterHandler.java:<wbr>129)</div><div><span style="white-space:pre-wrap">        </span>at org.<span class="gmail-il">keycloak</span>.services.filters.<wbr>KeycloakSessionServletFilter.<wbr>doFilter(<wbr>KeycloakSessionServletFilter.<wbr>java:90)</div><div><span style="white-space:pre-wrap">        </span>at io.undertow.servlet.core.<wbr>ManagedFilter.doFilter(<wbr>ManagedFilter.java:60)</div></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">And on the login page the user see this </div><div style="font-size:12.8px">&quot;Unexpected error when handling authentication request to identity provider.&quot;</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">could you please help us ? </div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Thanks </div></div>