Login timestamps

Hi everyone,

We have users entering tracker data on the android phones and we would like to get a complete login history (i.e., a user’s last week login information)

We used the API below in an attempt to filter users whose lastLogin is greater than or equal to 18 July 2025.

…api/29/users?fields=id,name,lastLogin&filter=lastLogin:ge:2025-07-18&paging=false

But it only retrieves the most recent lastLogin timestamp for each user.

Is there any way to get complete login history through an API?

Thanks

Hi there. Currently there is no way to do this. The same information could likely be extracted from the logs, but DHIS2 does not keep a record of each time a user logs in, in the database.

1 Like