This seems to be an old question which I never found properly answered and possibly applicable to other Atlassian products.
Recently our confluence server is getting closer to its license limit and I've tried to find out more detailed information about the users.
In order to do that, I've looked into the db and, once again, I cannot get even close to the numbers that I can see in the browser, not even if I count the users twice.
I really would like a clear answer from Atlassian about this.
And yes, I've tried all the recommended queries which returns even lower numbers that I find with my own queries.
Any help is very much appreciated.
Regards,
Davide.