I had a particular use case where I need to find the user who is currently connected/online but has been idle since threshold mins/hours. In the Platform API, I do have a List Users API however it doesn’t have an ability to send is_online in the query params. So I would have to ideally call the List Users API, get all the users, iterate over the record set, fetch the is_online users, check their last_seen at timestamp.
Another approach would have been to track it down in my database and then query for only those users, however there is an upper limit of max 250 user ids to be sent in the query param
Is there a better way to basically get around this problem?