Basic Auth failure

krishnanara
Tera Contributor

I'm testing test case in ATF through basic auth.

I created a admin role profile 'ATF 'in sys_user table and created the same profile user name and passw in sys_auth_profile_basic table 

krishnanara_0-1757584271129.pngkrishnanara_1-1757584300287.png

 



I'm getting {"error":{"message":"User Not Authenticated","detail":"Required to provide Auth information"},"status":"failure"
Response Status Code: 401

Is there something I'm missing?

2 REPLIES 2

M Iftikhar
Mega Sage

Hi @krishnanara , Try logging out/in first , and if the issue persists, double-check the password and the auth profile reference.

Thanks & Regards,
Muhammad Iftikhar
If my response helped, please mark it as the accepted solution so others can benefit as well.

test218
Tera Contributor

Hi @krishnanara ,

The “User Not Authenticated” (401) error in ServiceNow ATF with Basic Auth means authentication details are missing or incorrect—most commonly, it's caused by an outdated password, missing required roles, or incorrect profile configuration.By verifying the password in sys_auth_profile_basic, ensuring the user has all required ServiceNow roles, and referencing the profile correctly in ATF, 401 errors can be resolved in most cases.

If my response helped, please mark it as the accepted solution so others can benefit as well.