<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
0D54z00006taTZwCAMOkta Classic EngineSingle Sign-OnAnswered2024-04-12T20:38:57.000Z2021-03-26T22:07:27.000Z2021-03-30T00:16:58.000Z

b41hv (b41hv) asked a question.

How to retrieve the user session after creating user

I have a requirement, user should able to access application immediately after doing registration in OKTA? As of now we do user registration and then ask user to login again with created credentials to access configured application.

How can we get the user session id to generate session token via API to access configured application?

 


  • Hi Rajiv Kumar,

    Thank you for your question on Okta Help Center, in order get the user session token you can fallow the steps provided in the fallowing article: https://developer.okta.com/docs/reference/api/sessions/

    And if you please you can take a peak at this article as well:

    https://developer.okta.com/docs/reference/api/users/

     

    You can also check the session token when logged in as an End User, and from the URL, you can use the user id (00u...) from there.

     

    As for your first question, it will be useful to take a look at you current API calls. In the above article is explained everything regarding the session calls and depends on how you had configured them ( regarding account status ). Make sure the applications are assigned to the specific user. If you please, you can take a look at this article as well.

    https://developer.okta.com/docs/reference/api/apps/

     

    If you need further assistance regarding this issue feel free to post a new case on Okta Help Center or open a support ticket on Okta Support and we will be more than happy to work with you.

     

    Best,

    Expand Post
This question is closed.
Loading
How to retrieve the user session after creating user