Forum Academy Marketplace Showcase Pricing Features

How to count users in database?

Hi,

I want to display number of users registered on my site, number of user accounts in my database.
No matter what I do Search for Users:count returns number of users logged in at the moment. If no one is logged in it returns 0 although I have 5 test users registered. I have tried different “field not empty criteria”, no use. Please advise.

Regards,
Alex

Search for Users:count is the way to do it.

So if it’s not working then it’s likely a privacy rules issue, or an issue with your search. So check both of those things first.

It was default privacy rule set for users. I removed it and it returns the count now. I still need to play with privacy, but for current demo it is not so important. Thank you so much.

1 Like