Get user info based on their OAuth Token

sieusaopolo15
Tera Guru

I'm using postman to generate OAuth Token for specific users in my instance and I wonder if there is a way to get user info based on their tokens ?

8 REPLIES 8

@sieusaopolo15 

that's the token as encrypted value as it's password type field

but what's your business requirement here?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Amit Verma
Kilo Patron
Kilo Patron

Hi @sieusaopolo15 

 

Check the below columns in the OAuth Credentials(oauth_credential) table, you might get what you need:

AmitVerma_0-1738567732176.png

Thanks and Regards

Amit Verma


Please mark this response as correct and helpful if it assisted you with your question.

I tried but the field Token received is always empty only field Token hash value is not empty. As far as I know, the Token received field is the field which holds token value of the user according to this doc

@sieusaopolo15 

 

Please have a look on the below support article:

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0792561

 


Please mark this response as correct and helpful if it assisted you with your question.