
Sai TejaK.05318 (Customer) asked a question.
Hello,
Is there any way we can get last login time stamp for a user?
Tried this in Postman but gives me empty value
{{url}} /api/v1/logs?filter=eventType eq "user.session.start" and outcome.result eq "SUCCESS" and actor.id eq "{{id}}"&sortOrder=DESCENDING

Hello Sai,
The information you're looking for should be visible by using the following API call:
https://developer.okta.com/docs/reference/api/users/#get-user
The last login information will be visible in the response, for example:
"id": "00ub0oNGTSWTBKOLGLNR",
"status": "ACTIVE",
"created": "2013-06-24T16:39:18.000Z",
"activated": "2013-06-24T16:39:19.000Z",
"statusChanged": "2013-06-24T16:39:19.000Z",
"lastLogin": "2013-06-24T17:39:19.000Z",
"lastUpdated": "2013-07-02T21:36:25.344Z",
"passwordChanged": "2013-07-02T21:36:25.344Z",
I hope this information helps!