REST STEP Action in flow designer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2022 08:32 AM
Hi All,
I have a use case where I am calling a internal Servicenow scripted rest resource from a Action -> REST Step and I am receiving below error.
{"error":{"message":"com.glide.communications.ProcessingException: User Not Authenticated. Could not retrieve a new access token with the refresh token. User is not logged in.","detail":""},"status":"failure"}
Scripted REST Resource Details:
This is in return calling an Azure End Point which uses OAuth 2.0.
Using REST API explorer I am able to successfully able to obtain a response however when the scripted REST resource from REST Step I get above error. Any help is appreciated.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2022 09:28 AM
Have you setup the connection & credentials correctly? Because after setting up the connections & credentials you need to get oAuth token once to get it working.
BR.
Ishaan Shoor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2022 09:31 AM
Hi Ishaan, thank you for your response. For debugging purposes I have removed authentication for my scripted rest resource so I have no credential configured in my connection and credential.
I am pretty sure that the scripted rest resource is being called with out any issues I see in the logs that’s it is being executed as guest user I suspect if it’s the access issue to tokens for guest users.
kal