Hi Team,
How do i get last login of all users for matomo through API ? I have explored the whole usermanagers module but non of the methods returned a last login of users.
Can this method “UsersManager.getUsers” be updated to return users’ last login date and time ?
Thanks.
Lukas
(Lukas Winkler)
February 21, 2020, 2:50pm
2
Hi,
There has been a bug report about this here:
opened 02:05PM - 23 Sep 16 UTC
closed 03:56PM - 27 Sep 21 UTC
Help wanted
In order to better manage user-accounts for Piwik it would be great if the lastS… een variable was added as a new column that is returned with the API method UsersManager.getUsers. We currently use these API-calls to export the list of users and manage access to Piwik via an external tool.
Someone created a Pull Request here, but never finished it:
matomo-org:3.x-dev
← Morerice:issue-10550
opened 09:06AM - 23 Sep 17 UTC
**last_seen** variable is added to API UsersManager/API::getUsers if it exists.
If you want to, you can create a new pull request finishing this.
Thanks.
i realised this pull request is still open, I will follow project to see if they accept the changes
Lukas
(Lukas Winkler)
February 21, 2020, 5:56pm
4
Just FYI: Add field lastSeen in the API for the UsersManager · Issue #10550 · matomo-org/matomo · GitHub is the issue and it is still open as it is not yet fixed.
BTW: If you need the data urgently, you could write a very simple Plugin that adds a UI that just returns the value if you specify the username.
But I agree, that this could be a part of Matomo