App Builder SPA: Receiving the following error "401: request is invalid, reason: failed authorization. Please verify your token and organization id" for some users
Hi,
I've built an React app using the App Builder, along with runtime actions which connects to other systems (i.e. AEM). My runtime actions require authentication, as the following:
actions:
assets:
function: actions/aem/assets/index.js
web: 'yes'
runtime: nodejs:20
inputs:
LOG_LEVEL: debug
AEM_HOST: $AEM_HOST
annotations:
require-adobe-auth: true
When I (as a developer) load the React App, the call to the runtime action executes successfully and loads the data properly.
However, for another user, when they open the App, the runtime action fails and they got this error message:
{
"error": "request is invalid, reason: failed authorization. Please verify your token and organization id."
}
I can also confirm that the call has the header `x-gw-ims-org-id` with the proper value passed.
I couldn't find it in the documentation, but is there any permissions needed for users to execute runtime actions?
Thank you,
Henry