Getting "User Not Authenticated" message when trying to fetch incidents from postman

Aadil
Kilo Contributor

I have used the below URL to fetch the incidents from an incident table using basic authentication (used ServiceNow username and password), when hit the send from postman, unfortunately getting 401 unauthorized response

GET URL: https://devxxxxxx.service-now.com/api/now/table/incident?sysparm_limit=1

find_real_file.png

can you please guide me to resolve this authentication issue, I tried but could not exact information for the same.

1 ACCEPTED SOLUTION

You need to use the User ID on the profile

View solution in original post

13 REPLIES 13

Alikutty A
Tera Sage

Hi,

Are you passing the user_name attribute of your user profile as the user name? I could just a see a com at the end of your user name.

Aadil
Kilo Contributor

@Alikutty Abdulrazak first of all, thanks for your reply and yes I used the email of my profile. If that is not correct, what could be the username and password for the basic authentication.

Aadil
Kilo Contributor

@Alikutty Abdulrazak can you please help me with this, i could not get any solution yet for this 401 authorization issue

You need to use the User ID on the profile