dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #50596
Re: Retrieving date of last login of user X
Yes, that's up to you.
On 29 January 2018 at 12:47, Calle Hedberg <calle.hedberg@xxxxxxxxx> wrote:
> Jan Henrik,
>
> Thanks - seems you can either filter on a specific user using the UID or
> using the filter parameter. The latter will usually be a bit easier
>
> Regards
> calle
>
> On 29 January 2018 at 13:42, Jan Henrik Øverland <jan@xxxxxxxxx> wrote:
>
>> For a specific user: https://play.dhis2.org/2
>> .28/api/users/N3PZBUlN8vq.json?fields=id,name,userCredential
>> s[id,name,username,lastLogin]
>>
>> On 29 January 2018 at 12:40, Jan Henrik Øverland <jan@xxxxxxxxx> wrote:
>>
>>> https://play.dhis2.org/2.28/api/users.json?fields=userCreden
>>> tials[id,name,username,lastLogin]
>>>
>>> On 29 January 2018 at 12:02, Calle Hedberg <calle.hedberg@xxxxxxxxx>
>>> wrote:
>>>
>>>> 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
>>>>
>>>> *******************************************
>>>>
>>>>
>>>> _______________________________________________
>>>> Mailing list: https://launchpad.net/~dhis2-devs
>>>> Post to : dhis2-devs@xxxxxxxxxxxxxxxxxxx
>>>> Unsubscribe : https://launchpad.net/~dhis2-devs
>>>> More help : https://help.launchpad.net/ListHelp
>>>>
>>>>
>>>
>>>
>>> --
>>> Jan Henrik Øverland
>>> Software developer, DHIS 2
>>> University of Oslo
>>> http://www.dhis2.org <https://www.dhis2.org/>
>>>
>>
>>
>>
>> --
>> Jan Henrik Øverland
>> Software developer, DHIS 2
>> University of Oslo
>> http://www.dhis2.org <https://www.dhis2.org/>
>>
>
>
>
> --
>
> *******************************************
>
> 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
>
> Cell: +27-82-853-5352
>
> Iridium SatPhone: +8816-315-19119
>
> Email: calle.hedberg@xxxxxxxxx
>
> Skype: calle_hedberg
>
> *******************************************
>
>
--
Jan Henrik Øverland
Software developer, DHIS 2
University of Oslo
http://www.dhis2.org <https://www.dhis2.org/>
References