How to get the multiple user information using access token

I am new to Okta I tried to create multiple people in the Okta. I have three peoples in the Okta So, t tried to hit the login api using second people crediential SO, i got the session token and I pass session token in the authorize URL. I got auth_code also next I pass auth_code in the token url and I got access_token and id_token also. next I decrypt the access token it showing first user details. how to fix it

Hi @hariprasath,

If you’ve given personB’s credentials to create the sessiontoken, and if you passed this sessiontoken in /authorize, id and access token should be generated for personB.

I would suggest you to double check the credentials passed. You could create a Support case with Okta or email developers@okta.com if you still need help.