Oauth 2.0 add user sys id with access token while generating

Krishna J
Tera Contributor

Hello Everyone,

 

In the response body I want to fetch user's sys_id as well along with  access token, refresh token, scope, token type and expires in.

So, It would be helpful if you let me know how can I achieve this. image.png

4 REPLIES 4

Amit Pandey
Kilo Sage

Hi @Krishna J 

 

Are you talking about integration user's sys_id? Why do you need this?

 

Regards,

Amit

 

sys id is needed as 3rd party application will not be knowing logged in users sys id so while generating token if we get users sys id in the response along with access token refresh token then for the front end team it will be helpful.

Hi @Krishna J 

 

There will only be one integration user to which you can easily know. I don't see any necessity of sending it in response, that too with access and refresh tokens. 

 

Regards,

Amit

Sohail Khilji
Kilo Patron
Kilo Patron

For integration its going to be 1 user. So every request you make or send it will be by that 1 user. You obviously know the sys_id of that user then why sent it everytime with request ? ( May be the 3rd party has multiple requestors ) 

 

In this case you can pass the sys_id in the request body why in auth token ?

 

 


☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....

LinkedIn - Lets Connect