Last login field for an application user

Good day everyone! Can You advice me how I can get last login date for an application user?
I want to get app-level profile fields and login date with one request to Okta.
If I call /apps/:appId/users/:userId I get related profile, but response hasn’t a needed date, but for /users/:id endpoint, I can get a user with target date (lastLogin field), but without app profile attributes.

Thank you in advance!

Hi @RuBAN-GT

The endpoint /api/v1/apps/:appId/users/:userId returns the user’s application assignment profile which by default does not contain this field. If you are checking for details in the assignment profile, the best solution would be to do a second request to /api/v1/users/:id to retrieve the lastLogin field.