Basic Auth failure
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2025 03:03 AM
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
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2025 04:42 AM - edited 09-11-2025 04:43 AM
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.
Muhammad Iftikhar
If my response helped, please mark it as the accepted solution so others can benefit as well.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2025 04:48 AM
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.
