Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
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
    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
    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
    1,521 Super User 2025 Season 1 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
    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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,513 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,636 Most Valuable Professional

Leaderboard

Featured topics