ServiceNow: OAuth Authentication

rampikutva
Tera Contributor

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





6 REPLIES 6

Abhay Kumar1
Giga Sage

@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.

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

@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.

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