Why is the user getting "You are not authorized! Error code: 0" error for any Assets related activities during the workflow execution?
Issue Description:
When the Asset activities within a workflow is being executed under a specific Robot Account/Robot User, all/few Asset activities are failing with error: " "You are not authorized! Error code: 0" (below is the snippet of an example)
Root Cause: Required permissions to handle Assets are missing for the Robot Account/Robot User.
Validation / Resolution:
- Make sure that Robot Account/Robot User is added to the Folder and a Role is assigned.
- For the Role assigned to Robot Account/Robot User at the Folder level, validate if Assets handling Permissions(View, Edit, Create, Delete) were maintained under Folder Permissions. (Navigate to Tenant -> Manage Access -> Roles and check if the boxes from the below screenshot are checked under Folder Permissions for the Role. - Managing Roles)
- If the issue persists, replace the custom Role at Folder level with a "Robot" role for the Robot Account/Robot User.