serverinfo icon indicating copy to clipboard operation
serverinfo copied to clipboard

View users who are online on the system

Open sinhkien opened this issue 1 year ago • 2 comments

Hi development team I have a problem I have a current problem on my server that has a lot of users, I can't control how many people are currently using it on my system. In the admin section there is a section to track users online at specific times. Let me ask here, how to track how many users are online at the present time on my system? instead of 5 minutes ago How can I, as an administrator, see how many active users I have on my system? I look forward to receiving your support I use nextcloud version 28.0.2 Operating system: Rock Linux 9 Thank you! image

sinhkien avatar Mar 12 '24 10:03 sinhkien

Let me ask here, how to track how many users are online at the present time on my system? instead of 5 minutes ago How can I, as an administrator, see how many active users I have on my system?

Define "active user" and "now". Keep in mind we're talking HTTP traffic here so... things are fairly stateless.

5 minutes is a pretty good gauge. Maybe 1 minute granularity (in some environments).

Can you share a bit more about your use case? What problem are you, specifically, trying to solve?

joshtrichards avatar Aug 01 '24 21:08 joshtrichards

There's a script to list the users by last login: https://help.nextcloud.com/t/script-nc-who-similar-to-unix-who-follow-live-who-is-logged-in/164972

Sounds like a good feature to me. The oc_authtoken table should have all the required information.

kesselb avatar Aug 02 '24 07:08 kesselb

Thanks again for reaching out!

It still sounds like a nice feature. I'm unsure if oc_authtoken is always up-to-date, but for a small overview like the last 10 online users, it should be good enough.

It's not on our roadmap to implement it, but if someone wants to look at it, we are happy to help.

kesselb avatar Apr 28 '25 12:04 kesselb