Set Asset Works in Studio but Fails in Unattended with “You are not authorized! Error code: 0”

HI All.
Facing an issue while Setting an Asset to Orchestrator.

  • When the process is executed from UiPath Studio , the Asset is set successfully.
  • When the same process runs Unattended , it fails with an authorization error 0.
    This is the screenshot shared by the admin teams regarding Access Rules . Could you please let me know if anything is missing or if any additional permissions are required for unattended robots?

@s.dineshbabu

is the user same in unattended?

the robot account also needs to be provided with these permissions

looks like the screenshot is for your or developer account

cheers

1 Like

hi @s.dineshbabu,

This works in Studio because it runs under your user account, but fails unattended because the Unattended Robot user doesn’t have Asset permissions.

Please check folder-level access (not your user):

Go to Folders → Manage Access
Grant the Unattended robot user / group:
Assets – View
Assets – Edit

Also ensure the job is running in the same folder where the asset is defined.
No workflow change is required.

1 Like

Hi @s.dineshbabu

The unattended robot’s machine/user doesn’t have permission to Edit assets in the folder. Studio works because it runs under your user context. Assign the unattended robot (or its user/group) a role with Assets → Edit permission in that folder (or Tenant level if using classic), then rerun.

1 Like

I am not sure about it.
They have assigned me a test license
Bots will run in my machine.

@s.dineshbabu

please ask them to give permissions to the robot account

to verify which account it is..go to automations → jobs → find the job that failed..it would show the unattended user used to run..edit the same user from tenant → users → edit user → assign roles

cheers

1 Like

Is that the highlighted one?

@s.dineshbabu

Yes thats correct

cheers

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.