Get user info based on their OAuth Token
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-02-2025 07:25 PM
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 ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-02-2025 11:40 PM
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.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-02-2025 11:29 PM
Check the below columns in the OAuth Credentials(oauth_credential) table, you might get what you need:
Thanks and Regards
Amit Verma
Please mark this response as correct and helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-02-2025 11:34 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-02-2025 11:46 PM
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.