Disable and Not Active User's List

Hello,
List users who have logged in before a certain date on owncloud.
For example, I want to list users who last logged in 6 months ago.
I can see this from the interface but is there a command for this for linux
Thanks…

1 Like

Hello,

you might be able to utilize occ user:list with some scripting:

occ user:list --output json_pretty -a lastLogin -a displayName
{
    "admin": {
        "lastLogin": 0,
        "displayName": "admin"
    },
    "demo": {
        "lastLogin": 1674460648,
        "displayName": "demo"
    },
    "test": {
        "lastLogin": 0,
        "displayName": "test"
    }
}
1 Like

Note that the “lastLogin” refers to when the user has actively logged into the system. Some mechanisms such as oAuth allows extending the active session (by refreshing the token) and that won’t count as a login.

In practice, a desktop client could keep running for months by refreshing the oAuth token, and the “lastLogin” value wouldn’t be updated.

Good point! I guess that applies to the UI as well. However, in my opinion, this is a real problem if you want to find out when an account was really last used …

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.