← Back to team overview

dhis2-devs team mailing list archive

Re: Retrieving date of last login of user X

 

Lukas/David,

That works - thanks!

Regards
Calle

On 29 January 2018 at 13:14, David Palmer <David.Palmer@xxxxxxxxxxxxxxx>
wrote:

> Hi Calle,
>
>
>
> Something like
>
> /api/users?fields=userCredentials[username,lastLogin]&filter=
> userCredentials.username:eq:[YOUR_SPECIFIC_USER]
>
> should do the trick
>
>
> e.g.
>
> https://play.dhis2.org/2.28/api/users?fields=userCredentials[username,
> lastLogin]&filter=userCredentials.username:eq:igor_m
>
>
> Cheers,
>
> Dave
>
>
>
> *Dave Palmer *– Global Applications Manager MIS
>
> *T* +44 (0) 20 3219 8098
>
> *M* +44 (0) 7757 109777
>
> *skype* dave-MSI
>
> david.palmer@xxxxxxxxxxxxxxxxxx
>
> www.mariestopes.org
>
>
>
> Marie Stopes International
>
> 1 Conway Street
> <https://maps.google.com/?q=1+Conway+Street&entry=gmail&source=g>
>
> Fitzroy Square
>
> London W1T 6LP
>
> United Kingdom
>
>
>
>
>
> *From:* Dhis2-devs [mailto:dhis2-devs-bounces+david.palmer=
> mariestopes.org.uk@xxxxxxxxxxxxxxxxxxx] *On Behalf Of *Calle Hedberg
> *Sent:* 29 January 2018 11:02
> *To:* dhis2-devs; Govender, Tanya
> *Subject:* [Dhis2-devs] Retrieving date of last login of user X
>
>
>
> Hi
>
>
>
> I've looked through the parameters for the web API resource "Users", but I
> cannot immediately see a way of retrieving the last logged in date for a
> specific user.
>
>
>
> Is there a way of doing this, and if yes what is the syntax / parameter to
> use?
>
>
>
> regards
>
> Calle
>
> *******************************************
>
> Calle Hedberg
>
> 46D Alma Road, 7700 Rosebank, SOUTH AFRICA
> <https://maps.google.com/?q=46D+Alma+Road,+7700+Rosebank,+SOUTH+AFRICA&entry=gmail&source=g>
>
> Tel/fax (home): +27-21-685-6472 <+27%2021%20685%206472>
>
> Cell: +27-82-853-5352 <+27%2082%20853%205352>
>
> Iridium SatPhone: +8816-315-19119 <+881%206%20315%2019119>
>
> Email: calle.hedberg@xxxxxxxxx
>
> Skype: calle_hedberg
>
> *******************************************
>
>
> This Email from Marie Stopes International and any attachments may contain
> information which is privileged or confidential. It is meant only for the
> individual(s) or entity named above. If you are not the intended
> recipient(s) of this Email or any part of it please notify the sender
> immediately on receipt and delete it from your system. Any opinion or other
> information in this email or its attachments that does not relate to the
> business of Marie Stopes International is personal to the sender and is not
> given or endorsed by Marie Stopes International.
>



-- 

*******************************************

Calle Hedberg

46D Alma Road, 7700 Rosebank, SOUTH AFRICA

Tel/fax (home): +27-21-685-6472

Cell: +27-82-853-5352

Iridium SatPhone: +8816-315-19119

Email: calle.hedberg@xxxxxxxxx

Skype: calle_hedberg

*******************************************

References