Trying to delete queue items in one process. When running in Studio it works fine, but when running the same process in Orchestrator the process returns “You are not authorized. Error code: 0”. The users are running with the same Role.
Only one folder “Default” exists in this solution. Process is created with the new Windows framework. We have tried both with and without the “Default” in Orchestrator Folder Path and both is giving the same message. Only when running in Orchestrator.
Debugging it in studio with the same role is working.
I have also tested with another process that is attended (old Legacy framework), there it is working.
Managed to solve this. There was a mixup of roles, so indeed after checking the roles one more time we managed to figure it out.
From the documentation
Enables you to delete items with the New state from a specified Orchestrator queue. Please note that in order to execute this activity in Studio, the Robot has to be connected to Orchestrator and the Robot role needs Edit , Create , and Delete permissions on queues and Delete permissions on transactions. When this activity is run, it uses the same authentication context as the Robot which executes it, inheriting its permissions.