Skip to main content

Notifications

Copilot Studio - Building Copilot Studio Chatbo...
Suggested answer

AccessToBotDenied after publishing Bot to Teams and granting permissions

(1) ShareShare
ReportReport
Posted on by 4
Hi there,

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.

I hope someone can help me.
Best regards,
Karsten
Categories:
  • Suggested answer
    KM-12090803-0 Profile Picture
    KM-12090803-0 4 on at
    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.
  • Suggested answer
    thehetz Profile Picture
    thehetz 21 on at
    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.
  • Suggested answer
    Artur Stepniak Profile Picture
    Artur Stepniak 719 on at
    AccessToBotDenied after publishing Bot to Teams and granting permissions
    Hello,
     
    I'd suggest you to check that you've assigned everything correctly here: https://learn.microsoft.com/en-us/microsoft-copilot-studio/admin-share-bots?tabs=web
     
    In case of any other questions, let me know. If the answer helped you, mark it, so that others can benefit from it.
     
    Best regards,
     
    Artur Stepniak
  • IF-05121233-0 Profile Picture
    IF-05121233-0 2 on at
    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.

Helpful resources

Quick Links

November 2024 Newsletter…

November 2024 Community Newsletter…

Community Update Oct 28…

Power Platform Community Update…

Tuesday Tip #9 Get Recognized…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 143,867

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 64,161

Leaderboard

Featured topics