<?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[how can I get an exact number of users with some attributes?]]></title><description><![CDATA[<p dir="auto">How can I get an exact number of users with some attributes? I'm using elasticsearch.</p>
]]></description><link>https://fusionauth.io/community/forum/topic/3132/how-can-i-get-an-exact-number-of-users-with-some-attributes</link><generator>RSS for Node</generator><lastBuildDate>Thu, 14 May 2026 18:18:27 GMT</lastBuildDate><atom:link href="https://fusionauth.io/community/forum/topic/3132.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 11 May 2026 20:52:06 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to how can I get an exact number of users with some attributes? on Mon, 11 May 2026 20:54:43 GMT]]></title><description><![CDATA[<p dir="auto">You want to use search parameters like those outlined in <a href="https://github.com/FusionAuth/fusionauth-example-scripts/blob/main/full-user-search/countusers.sh" rel="nofollow ugc">this sample script</a>.</p>
<ul>
<li>use a key limited to <code>POST</code> on <code>/api/user/search</code></li>
<li>set <code>accurateTotal</code> on the request</li>
<li>set <code>numberOfResults</code> to <code>1</code> on the request</li>
</ul>
<p dir="auto">In the response, look at the <code>total</code> field.</p>
<p dir="auto">This will let you get exact numbers while reducing load on your instance.</p>
]]></description><link>https://fusionauth.io/community/forum/post/8596</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/8596</guid><dc:creator><![CDATA[dan]]></dc:creator><pubDate>Mon, 11 May 2026 20:54:43 GMT</pubDate></item></channel></rss>