Postman Request returns 401 "Required to provide Auth information"

Christopher Doo
Kilo Expert

Hi im struggling to discover what is causing this error. 

In my instance via REST Api Explorer I can get a 200 OK response from this using the cn_cusomerservice_case table & the correct sysid of the Case I wish to retrieve.

GET https://xxxx.service-now.com/api/now/table/{tableName}/{sys_id}


In Postman however using the same User/password combination I get the 401.

i've checked the username/password is valid and & can login.
i've checked the user is active and the name/psw is correct (& can get the record via REST explorer)
I've check that the role snc_platform_rest_api_access has been added to that account.
i've checked the "Allow access to this table via web services" = true on that table.

I'm not really sure what other things I need to check add to allow this, any assistance would be appreciated.

1 ACCEPTED SOLUTION

Christopher Doo
Kilo Expert

Ok I tried everything and could not get my admin user working for REST API calls. However after much head-scratching I created a new integration user gave it the Admin role and marked as "web-service access only". Now everything works AOK from Postman.

I really cant understand why my own Admin user does not work but the new user does but at least the new one works. If you have issues with 401 you can start with that.

Thanks all.

View solution in original post

8 REPLIES 8

Community Alums
Not applicable

Hi @Christopher Dooley ,

 Can you try this way, just to validate if it's related to authentication issue :

https://community.servicenow.com/community?id=community_question&sys_id=c12d43a9db9cdbc01dcaf3231f96...

https://hi.service-now.com/kb_view.do?sysparm_article=KB0565021

Mark my answer correct & Helpful, if Applicable.

Thanks,
Sandeep

Christopher Doo
Kilo Expert

Ok I tried everything and could not get my admin user working for REST API calls. However after much head-scratching I created a new integration user gave it the Admin role and marked as "web-service access only". Now everything works AOK from Postman.

I really cant understand why my own Admin user does not work but the new user does but at least the new one works. If you have issues with 401 you can start with that.

Thanks all.

Hi Christopher,


I'm facing same issue since last 3-4days.

I have verified the credentials and they are fine. I have gave almost all the roles to the user but still no use.
The OAuth is working fine and the response has proper access and refresh tokens.

But when i use the access token and fire the contact api to fetch contacts then it fails with response as: 

{
    "error": {
        "message""User Not Authenticated",
        "detail""Required to provide Auth information"
    },
    "status""failure"
}
Attached below is the screenshot of same.
OAUTH request:
Prasadsawant_0-1665148902946.png

 

Using same access token. Contact API request:

Prasadsawant_1-1665148902919.png

 


Can you guys please help me with this? Is the Contact API request structure correct? Any help is appreciated.

Thanks in advance.

I have also created a new integration user gave it the Admin role and marked as "web-service access only" but did not work for me. BTW i'm using ROME Release Instance.