REST API OAuth

burn907
Tera Expert

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.

1 ACCEPTED SOLUTION

burn907
Tera Expert

The resolution to this was the hidden OAuth Application User field in the form. No idea why it would be hidden (Yokohama P1). 

View solution in original post

17 REPLIES 17

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 



Regards,
**Martin Virag**
ServiceNow Rising Star

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

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



Regards,
**Martin Virag**
ServiceNow Rising Star