<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D54z00009TCLUlCAPOkta Classic EngineAuthenticationAnswered2024-11-10T09:01:20.000Z2023-07-17T13:39:39.000Z2023-07-19T19:09:48.000Z

wnby5 (wnby5) asked a question.

Adding Last Login to Okta User Profile for display on Users Home screen

This is a customer facing app where we provide the customer with their last login date and. In this effort, we are migrating the customers to Okta Universal Directory and Authentication. As Okta is now the source of truth for last login, we need to display it. Seems easiest to add it to the user's profile and update it at login. Suely someone has had this need. Or is an API call the best solution at run time?


  • Hello @wnby5 (wnby5)​ Thank you for reacting out to our Community!

     

    At this time this attribute is not set in the Okta user profile. You can find this value from Reports->Password health Report will have this value or serach for the user using API {{url}}/api/v1/users/{{userId}} and "lastLogin" attribute returned in JSON can be used.

     

    Community members help others by clicking Like or Select as Best on responses. Try it today.

    Expand Post
  • wnby5 (wnby5)

    Thanks for your note. Yes, last login is avaialble on the profile but once the user has logged in, 'last login' is the login just affected. As is common in cutomer -facing apps, we want to show when they last logged in previously. So if we access it pre-login it would be the desired value, but that's an effort adn will slow down the login process my developers believe. Or am I missing something?

    Expand Post
This question is closed.
Loading
Adding Last Login to Okta User Profile for display on Users Home screen