<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Troubleshooting Empty Results from FusionAuth User Search API]]></title><description><![CDATA[<p dir="auto">I'm trying to retrieve a list of all users stored in FusionAuth using the <strong>/api/user/search</strong> endpoint but keep getting <strong>empty results</strong>.<br />
To troubleshoot, I tested the request in <strong>Postman</strong>, sending a <strong>POST</strong> request to <strong>/api/user/search</strong> with the following body:</p>
<pre><code>{
  "search": {
    "queryString": "email@email.com"
  }
}
</code></pre>
<p dir="auto">However, the response I receive is:</p>
<pre><code>{
  "expandable": [],
  "total": 0,
  "users": []
}
</code></pre>
<p dir="auto">Am I doing something wrong? Is there a better guide on how to format and send this request correctly?</p>
]]></description><link>https://fusionauth.io/community/forum/topic/2894/troubleshooting-empty-results-from-fusionauth-user-search-api</link><generator>RSS for Node</generator><lastBuildDate>Tue, 09 Jun 2026 09:19:57 GMT</lastBuildDate><atom:link href="https://fusionauth.io/community/forum/topic/2894.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 15 Mar 2025 20:25:46 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Troubleshooting Empty Results from FusionAuth User Search API on Sat, 15 Mar 2025 20:31:13 GMT]]></title><description><![CDATA[<p dir="auto">Your request body looks correct for a <strong><strong>basic search by email</strong></strong> and should return a result if a user with that exact email address exists in your system.</p>
<p dir="auto"><strong>1. Ensure You Are Using POST (or Use GET with Query Parameters)</strong></p>
<ul>
<li>The <strong>/api/user/search</strong> endpoint supports both <strong>POST</strong> and <strong>GET</strong>, but they <strong>expect different input formats</strong>.</li>
</ul>
<p dir="auto">If using <strong>GET</strong>, you must provide query parameters, such as:</p>
<pre><code>GET /api/user/search?ids=&lt;user_id&gt;
</code></pre>
<p dir="auto"><strong>2. Searching for Partial Matches</strong></p>
<p dir="auto">If you want to find all users with a certain <strong>email domain</strong>, try using a <strong>wildcard search</strong>:</p>
<pre><code>{
  "search": {
    "queryString": "*@email.com"
  }
}
</code></pre>
<p dir="auto"><strong>3. Verify API Key Permissions</strong></p>
<p dir="auto">If you <strong>still get empty results</strong>, ensure that:</p>
<ul>
<li>Your API key has <strong>sufficient permissions</strong> to query user data.</li>
<li>The <strong>user records exist</strong> in the database.</li>
</ul>
<p dir="auto"><strong>4. Further Reading on User Search</strong></p>
<p dir="auto">For more details on how to construct search queries, refer to:</p>
<ul>
<li><a href="https://fusionauth.io/docs/apis/users#elasticsearch-search-engine" rel="nofollow ugc">Elasticsearch Search in FusionAuth</a></li>
<li><a href="https://fusionauth.io/docs/lifecycle/manage-users/search/user-search-with-elasticsearch#searching-with-querystring" rel="nofollow ugc">User Search with Elasticsearch</a></li>
</ul>
]]></description><link>https://fusionauth.io/community/forum/post/7891</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/7891</guid><dc:creator><![CDATA[wesley]]></dc:creator><pubDate>Sat, 15 Mar 2025 20:31:13 GMT</pubDate></item></channel></rss>