<div dir="ltr"><div>Hi,</div><div><br></div><div>I was looking for a way to query users based on their exact username but it turned out, that</div><div>  org.keycloak.admin.client.resource.UsersResource.search(String, String, String, String, Integer, Integer)</div><div><br></div><div>  @GET</div><div>  @Produces(MediaType.APPLICATION_JSON)</div><div>  List&lt;UserRepresentation&gt; search(@QueryParam(&quot;username&quot;) String username,</div><div>                                       @QueryParam(&quot;firstName&quot;) String firstName,</div><div>                                       @QueryParam(&quot;lastName&quot;) String lastName,</div><div>                                       @QueryParam(&quot;email&quot;) String email,</div><div>                                       @QueryParam(&quot;first&quot;) Integer firstResult,</div><div>                                       @QueryParam(&quot;max&quot;) Integer maxResults);</div><div><br></div><div>  ...</div><div>  usersResource.search(&quot;exactusername&quot;,null,null, null, null, email, 0, 10)</div><div><br></div><div>generates a like %..% query in JpaUserProvider.searchForUserByAttributes(...).</div><div><br></div><div>Since usernames are unique per realm I think it would make sense to be able to perform a</div><div>query for the exact username (or perhaps the combination of other attributes as well).</div><div><br></div><div>Was this omitted by design, or may I create a JIRA for this?</div><div><br></div><div>Cheers,</div><div>Thomas</div></div>