rest step in atf i am getting this error "Response Body: {"error":{"message":"User Not Authenticated
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-24-2025 08:34 PM
rest step in atf i am getting this error "Response Body: {"error":{"message":"User Not Authenticated","detail":"Required to provide Auth information"},"status":"failure"}"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-24-2025 09:21 PM
Hello @ahmed786 ,
I hope you have provided basic authentication to rest step if yes the. please check the user which is configured in basic authentication if user has required roles.
Assign roles to that user which are required to run rest request.
Thanks,
Valmik Patil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-24-2025 09:31 PM
Hi @ahmed786 ,
- Are you creating a new user at the beginning of the ATF or impersonating an existing user? If you are creating a new user, it might throw this error.
- Can you try once with impersonating an existing user?
- Also, in the rest step - under 'Authentication' section - what is the value given in 'Basic authentication' field? Is the record selected in this field is updated with the latest user password? - ATF Message: The response code is '401 Unauthorized' for 'Send REST Request - Inbound' test step - S...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-24-2025 10:05 PM
please share all the test steps you created for ATF.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader