As an admin, is it possible to list all connected clients

Is it possible, as an administrator, to list all connected clients.
At least, is there a log which contains the information “who connected using a client and when”?


You can use an occ command.

sudo -u www-data php /path/to/nextcloud/occ user:list
sudo -u www-data php /path/to/nextcloud/occ user:lastseen username

1 Like

Thanks for the hint. I tried those commands but the date returned is quite puzzling:
toto`s last login: 21.12.2021 19:05

Since then, this computer was off network and reconnected several times.
I will try manual disconnection and reconnection of the client itself.

It doesn’t work, even when I disconnect the user and reconnect him, user:lastseen gives the same date , which by the way is the date of the first connection.

I will consider that after upgrades, the database remained corrupted in some way (which is possible since all the modification dates of the files were lost).