Forum Discussion

phani's avatar
phani
Advisor
8 years ago

V2 API: How to get online user details?

Hi,   Following query is giving the count of online users SELECT count(*) FROM users WHERE online_status = 'online' LIMIT 1000   But when we are pulling the online users details by using followi...
  • DougS's avatar
    8 years ago

    It looks like the non-count query is not working correctly.

     

    Also, it looks like the count query returns both registered users who are online, as well as anonymous users who are viewing the community/have viewed the community recently.

     

    We have filed a bug to fix both of these issues.

     

    As a workaround, you could instead using the REST V1 users/online/registered call to get information about registered users who are currently online (as well as the users/online/registered/count call to get a count of registered users online).

     

    -Doug