Can I find the exact number of users in FusionAuth with specific attributes?

mooreds1 pts0 comments

how can I get an exact number of users with some attributes? | FusionAuth Forum

Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode .

Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).

how can I get an exact number of users with some attributes?

Scheduled

Pinned

Locked

Moved

Solved

Q&A

search

306

Loading More Posts

Oldest to Newest

Newest to Oldest

Most Votes

Reply

Reply as topic

Log in to reply

This topic has been deleted. Only users with topic management privileges can see it.

dan

last edited by

How can I get an exact number of users with some attributes? I'm using elasticsearch.

FusionAuth - Identity Without Constraints

https://fusionauth.io

1 Reply<br>Last reply

Reply<br>Quote

dan

@dan

last edited by

You want to use search parameters like those outlined in this sample script.

use a key limited to POST on /api/user/search

set accurateTotal on the request

set numberOfResults to 1 on the request

In the response, look at the total field.

This will let you get exact numbers while reducing load on your instance.

FusionAuth - Identity Without Constraints

https://fusionauth.io

1 Reply<br>Last reply

Reply<br>Quote

D dan has marked this topic as solved

First post

Last post

Go to my next post

Looks like your connection to FusionAuth Forum was lost, please wait while we try to reconnect.

reply fusionauth exact users last number

Related Articles