Exporting user last login details

Hi! All,

Could anyone guide me how can I export data/view data having last login time stamp of users in the System with user name, email address etc. Although, I can see a column “lastCheckedInterpretations” when I export Meta Data using Import/Export App. But not sure what does it mean as it is not matching with last login time ?

Thanks,
Raushan

As a quick thing you could use the following API call:

https://play.dhis2.org/2.39.1.2/api/users.json?fields=name,username,lastLogin,email

I am not sure you can use CSV export directly (it seems some data is not returned) so I would go that way and then convert the JSON to a CSV if that’s the format you need.

1 Like