I have created a bot in CoPilot Studio that uses Dataverse tables and Power Automate Flows. I have published the bot to teams via ZIP file and given permissions to some users.
The Dataverse access is also configured to use my (the CoPilot author's) authentication.
I can use the bot just fine in Teams, but everyone else gets errors like this:
It seems like some more permissions are needed, but which ones? The bot is visible to colleagues, but they always get this "AccessToBotDenied" error.
AccessToBotDenied after publishing Bot to Teams and granting permissions
The solution was to give every user of the Bot also the permission for the corresponding power automate flow. Sadly it does not seem possible, to use the CoPilot Authors permission.
AccessToBotDenied after publishing Bot to Teams and granting permissions
I have had issues similar to this in the past when publishing using a .zip file. Have you tried publishing through the Teams channel within Copilot studio? Also, since you are leveraging Dataverse in this solution, all of the users that you share the bot with may need to have a Power Platform Premium license assigned to them so they can access Dataverse. Then you could set the permission to connect as the user, rather than as the author. You may also try sharing the Dataverse connection with those users as well, from the Power Platform Admin portal.
AccessToBotDenied after publishing Bot to Teams and granting permissions
I did this to solve my problem, but I didn't check which one solved it. First I went to channels, teams, edit agent details, Teams multi-user collaboration areas and checked the box to allow collaborators to interact with the bot and in about 30 minutes it was activated.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.