Hi All, I am testing control room API to run the deploy the bot from another application throw api. I have created a Bot creator account having custom bot runner roles to run the Bot and I am able to run the Bot from AA360 control room. But when I am trying to run the Bot from API with all necessary settings, I am getting below error
PERMISSION_DENIED: User: (userid) does not have permission to run bot
Please help me on this how to resolve it.
Permission denied while deploying the Bot via control room api
![Peer Advisor Silver Badge](https://uploads-us-west-2.insided.com/automationanywhere-en/attachment/ad14289c-ffba-4a3d-af07-736fc293e482_thumb.png)
Hello
1. Verify the user has unattended license assigned for the bot deployment.
2. The User which is used for the deployment from should have the Repository-Bots permission for running the bot.
![Collaborator Badge](https://uploads-us-west-2.insided.com/automationanywhere-en/attachment/eeb1807e-43ef-49be-9d57-ee7e35651ddc_thumb.png)
Hi
![Peer Advisor Silver Badge](https://uploads-us-west-2.insided.com/automationanywhere-en/attachment/ad14289c-ffba-4a3d-af07-736fc293e482_thumb.png)
Hello
You have to ensure the user has permission to run the bots on which folder its located. You may create a custom role and chose the Bot run permissions and the folder where the task bot is located, then assign this role to the runner user.
![Collaborator Badge](https://uploads-us-west-2.insided.com/automationanywhere-en/attachment/eeb1807e-43ef-49be-9d57-ee7e35651ddc_thumb.png)
Hi
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.