The Zurich release has arrived! Interested in new features and functionalities? Click here for more

Access denied with Oauth2

lucaburgazzoli
Mega Contributor

Hello, 

I'm trying to use OAuth2 to access ServiceNow through its REST APIs and I've followed the guides here:

  1. https://docs.servicenow.com/bundle/paris-platform-administration/page/administer/security/reference/r_OAuthAPIRequestParameters.html
  2. https://community.servicenow.com/community?id=community_blog&sys_id=56086e4fdb9014146064eeb5ca961957

But I'm constantly getting HTTP 401 unauthorized, what should I check ?

1 ACCEPTED SOLUTION

Hi,

Did you follow the steps properly as mentioned in blog?

Also are you using correct username and password combination

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

10 REPLIES 10

Not very sure on this.

If the token gets expired it's the ServiceNow's responsibility to handle it.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader