- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-28-2020 04:30 AM
I'm trying to generate the access/refresh tokens using postman.
I have given Get method and provided the instance url as https://xxxxxx.service-now.com/oauth_token.do and under headers section, provided all the required key value pairs, like client id, secret, username, password and grant type.
And when I hit Send button , getting the below error,
{
"error_description": "access_denied",
"error": "server_error"
}
please help me to get the tokens.
Solved! Go to Solution.
- 10,913 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-28-2020 04:41 AM
I have written a blog for this
Please refer the same and do remember to mark it as helpful and also bookmark if that helps
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-05-2023 06:38 AM
Hey @Sreedhar M , I have the same issue and I follow this thread.
Which authentication do you use? Base auth? Can you show?
I have the same problem with admin user.
Thank you @Ankur Bawiskar for explanations!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-28-2024 11:40 AM
I have followed the exact steps but unable to generate access token and refresh token. I am getting the following error,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-24-2025 07:35 PM
Hello @Sreedhar M,
For a similar kind of issue, please refer to the link below:
https://www.servicenow.com/community/developer-forum/oauth-2-0-getting-access-token-issue-on-postman...
If it is helpful, please hit the thumbs up button and accept the correct solution in future by referring to this solution; it will be helpful to them.
Thanks & Regards,
Abbas Shaik