REST API OAuth

burn907
Tera Contributor

I am unable to get a REST API token using ServiceNow OAuth. We are not yet on Zurich to make use of the MIC. I selected OAuth API endpoint for external clients. The token does not get issued when using Client ID and secret. We have Entra ID serving as our OIDC external provider, but only for SSO. There seems to be a redirect here, but this won't support REST API as far as I know. 

 

Any help would be really appreciated.

15 REPLIES 15

I have tried from postman and get Response should contain access_token | AssertionError: expected false to be true. 401 Unauthorized 

Thank you. Grant type needs to be client credentials. I now get this error: 

"error_description": "Received client_credentials grant_type request however integration user is not configured for OAuth

you should be able to configure the user on the form, however I think client creds are not supported since the washington release 

try this configuration, this should be an answer to your question

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