ServiceNow: OAuth Authentication
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2023 01:07 AM
Hello All,
Good Afternoon. How are you?
I have created an application registry for OAuth Authentication by which we got the CLIENT ID and CLIENT SECRET.
Now I have to get the REFRESH TOKEN for which I went to POSTMAN and followed the below KB Article:
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0778194#:~:text=Navigate%20to....
After following the second paragraph "Obtaining the Access and Refresh Token using Postman", I am in Pot getting the result in POSTMAN.
Getting "Access Denied" Error in POSTMAN.
In the BASIC Profile, have given "security_admin" role and tried the same.
Kindly advise how to overcome the error.
Thanks,
Ram Prakash K R
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2023 01:59 AM
@rampikutva check the ACL for update on the table , if admin override has not been selected then mentioned role/condition/advanced query on ACL should match.
Hope this will help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2023 02:22 AM
Hello @Abhay Kumar1 - I am using the below URL in POSTMAN:
https://<instance_name>.service-now.com/oauth_token.do
No table mentioned in the above URL.
Now advise what to be checked to overcome the "Access Denied" Error in POSTMAN.
Thanks,
Ram Prakash K R
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2023 06:49 PM
@rampikutva Navigate to oauth_credential table -> search name whatever you are trying -> then check user field value and match with user name passing in postman.
Please check whether both are same or not.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2023 08:47 PM
Hello @Abhay Kumar1 ,
Thanks for the information.
User Field in "aouth_credential" and username we are passing POSTMAN are same.
Still we are getting the access denied error.
Is there any other place to check to make this work?
Thanks,
Ram Prakash K R