I created a workflow that disables schedules/triggers and stops jobs for selected processes. This works great from my development machine. However, when I promote it to run from a Time trigger on an Unattended bot I get the following error:
Disable Trigger status code: 403
Response: {“message”:“You are not authorized!”,“errorCode”:0,“result”:null,“targetUrl”:null,“success”:false,“error”:{“code”:0,“message”:“You are not authorized!”,“details”:“You are not allowed to perform this operation.”,“validationErrors”:null},“unAuthorizedRequest”:true,“__abp”:true}
I have the bot Tenant permissions set as follows (I am sure I went overboard with permissions out of frustration):
BotManageFolderAddOn Includes View and Edite permissions for Jobs, Processes and Triggers. This should also be included in Folder Administrator which I only added recentle out of frustration.
srvcbotprod17 is the service account
uiprdbot017 is the robot account with machine template environment.
I am using Orchestrator HTTP activities for all requests - again, these are working perfectly for me - I am Orchestrator Admin and Folder Admin.
Orchestrator Cloud with on-premise machines UiPath v.2024.10.1
What is it you are doing different from bot account this time?
I see disable/enable triggers from bot account has worked for you in the recent past. Do you recall anything that has changed recently which could be interfering with the working?
I am not great at server side issues but I will try to answer as best I can. The bot account has not changed. We do operate in a Citrix environment with several machines in a template configuration so I am not 100% sure about which machine it is coming from. Orchestrator (the recipient of the call) is in the cloud.
I have permissions on the account in my bot management folder to do the work as required from the swagger file. However, do I need to put that account in each of the folders where I am controlling the jobs and triggers?