I have created a REST handler which was mapped to a data bean.
And I am calling the databean using this method
executeConfigBasedBeanWithContext(dataBeanName, profileName, responseFormat, typedProperty);Now, on calling this handler, I am getting the below Exception:
EC_APPLICATION_EXCEPTION like The user does not have authority to execute this query (_ERR_USER_AUTHORITY).
But it was working for Admin users(wcsadmin) without any exception. Below is the REST Exception:
{"errors":[{"errorParameters":["com.xxxx.commerce.order.command.CodeDataBean"],"errorCode":"CWXFR0268E","errorKey":"NOT_AUTHORIZED_FOR_QUERY","errorMessage":"CWXFR0268E: You are not authorized to execute query: GET https://localhost/wcs/resources/store/10154/codedata"}]}
Am I missing anything here?