Find LastLogin information

Hi all,

Exploring developer tools, I tried to find some API that could return the user's last login date.

I couldn't find it in UsersAPI. Does this last login information exist in some API? Or is there any query I can do to show users who logged in from a set date?

Thanks

You can determine this based on their presence info:

GET /api/v2/users/{userId}/presences/purecloud

Example return:
{
"source": "PURECLOUD",
"presenceDefinition": {
"id": "xxxxx",
"systemPresence": "Offline",
"selfUri": "/api/v2/presencedefinitions/xxxxx"
},
"message": "",
"modifiedDate": "2022-05-19T21:21:31.163Z",
"selfUri": "/api/v2/users/xxxxx/presences"
}

The presence of Offline and the modified date tells you when they were last logged in, for this user it was May 19, which matches what I see on the Admin>People last login value.

1 Like

exactly what i need
Thank you very much

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.