<font face="arial" size="2"><p style="margin:0;padding:0;font-family: arial; font-size: 10pt; word-wrap: break-word;">Oh wait! I think I can send the username in the getUsers call as a query parameter. If thats the case, I can manage it.</p>
<p style="margin:0;padding:0;font-family: arial; font-size: 10pt; word-wrap: break-word;">Let me confirm.</p>
<p style="margin:0;padding:0;font-family: arial; font-size: 10pt; word-wrap: break-word;"> </p>
<!--WM_COMPOSE_SIGNATURE_START-->
<p class="MsoNormal" style="margin:0;padding:0;mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;">Regards, </p>
<p class="MsoNormal" style="margin:0;padding:0;mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"><strong><span style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: gray;">Kalinga</span></strong><span style="font-size: 8.0pt; font-family: 'Arial','sans-serif'; color: gray;"><a href="http://www.leapset.com"></a> </span></p>
<!--WM_COMPOSE_SIGNATURE_END-->
<p style="margin:0;padding:0;font-family: arial; font-size: 10pt; word-wrap: break-word;"><br /><br />-----Original Message-----<br />From: "Kalinga Dissanayake" <kalinga@leapset.com><br />Sent: Monday, January 4, 2016 2:28pm<br />To: keycloak-user@lists.jboss.org, keycloak-dev@lists.jboss.org<br />Cc: "Stian Thorgersen" <stian@redhat.com><br />Subject: Get user by username on version 1.7.0<br /><br /></p>
<div id="SafeStyles1451898151">
<p style="margin:0;padding:0;margin: 0; padding: 0; font-family: arial; font-size: 10pt; word-wrap: break-word;">I have a simple requirement.</p>
<p style="margin:0;padding:0;margin: 0; padding: 0; font-family: arial; font-size: 10pt; word-wrap: break-word;">I need to check if a user is already present on IDM before allowing the user to register himself. I basically use the admin rest apis offered by keycloak for all my user activities.</p>
<p style="margin:0;padding:0;margin: 0; padding: 0; font-family: arial; font-size: 10pt; word-wrap: break-word;"> </p>
<p style="margin:0;padding:0;margin: 0; padding: 0; font-family: arial; font-size: 10pt; word-wrap: break-word;">I was able to do this before 1.6.0, since there was an api to get user by username. I believe that this has been deprecated (removed completely) and replaced by get user by userId.</p>
<p style="margin:0;padding:0;margin: 0; padding: 0; font-family: arial; font-size: 10pt; word-wrap: break-word;"> </p>
<p style="margin:0;padding:0;margin: 0; padding: 0; font-family: arial; font-size: 10pt; word-wrap: break-word;">If there any way to fulfill my need in idm 1.7.0?</p>
<p class="MsoNormal" style="margin:0;padding:0;margin: 0; padding: 0; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"> </p>
<p class="MsoNormal" style="margin:0;padding:0;margin: 0; padding: 0; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;">Regards,</p>
<p class="MsoNormal" style="margin:0;padding:0;margin: 0; padding: 0; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;">Kalinga</p>
</div></font>