web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / Copilot Studio agent s...
Copilot Studio
Answered

Copilot Studio agent stuck after OneDrive consent and “Bad request” in Teams

(1) ShareShare
ReportReport
Posted on by 12

 

Hello everyone,

I am currently experiencing two issues with an agent developed and published in Copilot Studio, and I would appreciate any guidance or shared experiences from the community:

1️⃣ OneDrive connection issue

When running the agent, it prompts the user to grant permissions to connect to OneDrive for Business. However, after clicking “Allow”, the agent remains stuck at this step and does not continue generating responses. No additional error message is displayed, and the conversation does not progress.

2️⃣ “Bad request” error when sharing the agent in Microsoft Teams

Additionally, when the agent is shared with another user, the user receives a “Bad request” message when attempting to add the agent in Microsoft Teams, which prevents them from starting a chat with it. It is worth noting that the user has already been added to the agent’s access configuration in Copilot Studio.

Any insights regarding:


  • Proper handling of OneDrive connections in shared Copilot Studio agents.

  • Permissions, licensing, or publishing requirements to avoid the “Bad request” error in Teams

  •  

Thank you in advance for your support.

Captura de pantalla 2026-04-16 144650.png
Captura de pantalla 2026-04-16 144701.png
I have the same question (0)
  • Vish WR Profile Picture
    1,021 on at
     
    Does the user having issues have the required licence ?
  • Prasad-MSFT Profile Picture
    Microsoft Employee on at
    OneDrive Connection Issue (Stuck After “Allow”)
    Possible causes:
    • The agent’s OneDrive connector is not fully configured or consent is not propagating.
    • The user’s permissions or tenant policies block delegated access.
    • There’s a backend issue with Copilot Studio’s OAuth flow.
    What to check and try:
    1. Connector Setup: In Copilot Studio, ensure the OneDrive for Business connector is properly added and configured for the agent.
    2. Consent Propagation: Sometimes, tenant-wide admin consent is required. Ask your Microsoft 365 admin to grant admin consent for the OneDrive connector in Azure AD.
    3. Clear Cache/Incognito: Try the flow in a private/incognito browser window to rule out stale cookies or cache.
    4. Test with Different Users: See if the issue is user-specific or affects everyone.
    5. Wait and Retry: Sometimes, consent propagation can take a few minutes.
     
    “Bad request” Error When Sharing Agent in Teams
    Possible causes:
    • The user does not have the required Copilot Studio or Microsoft 365 license.
    • The agent is not fully published or not available to Teams.
    • Permissions or access configuration is incomplete.
    • Teams client or Copilot Studio backend issue.
    What to check and try:
    1. Licensing: Ensure the user has a valid Copilot Studio (or Copilot for Microsoft 365) license.
    2. Agent Publishing: Confirm the agent is published and enabled for Teams channel in Copilot Studio.
    3. Access Configuration: Double-check that the user is added to the agent’s access list and that sharing settings allow Teams access.
    4. Teams App Policies: In Teams Admin Center, verify that custom apps and Copilot agents are allowed for the user.
    5. Try Web/Desktop: Test adding the agent in both Teams web and desktop clients.
    6. Wait and Retry: Sometimes, publishing changes take time to propagate.
  • Suggested answer
    Valantis Profile Picture
    3,406 on at
     
    Two separate issues with different causes.
    Issue 1  OneDrive consent loop (agent stuck after Permitir):
    This happens because the OneDrive knowledge source is set to User authentication, which requires each user to individually consent via the FederatedKnowledgeSearchOperation prompt. The problem is that after the user allows it in Teams, the conversation context is lost and the agent doesn't continue.
     
    Fix: In Copilot Studio go to Knowledge > your OneDrive source > edit the connection and switch authentication from User to Agent author authentication. This uses your credentials to access OneDrive on behalf of the agent, removing the per-user consent prompt entirely. This is the recommended approach when the data is not user-specific.
     
    If the data needs to be user-specific and you must keep User auth, the workaround is to trigger the sign-in flow explicitly at the start of the conversation using the Sign In system topic, so consent happens before the query rather than mid-conversation.
    Issue 2  "Solicitud incorrecta" (Bad request) when other users add the agent in Teams:
    This is a Teams app availability issue. The agent needs to be approved and made available in Teams admin center before other users can install it. Being added to the Copilot Studio security group gives access to the agent's conversations but does not automatically install the Teams app for the user.
     
    Fix:

    1. A Teams admin must go to Teams admin center > Teams apps > Manage apps > find your agent > approve it
    2. Set availability to your security group specifically (not all users) using app permission policies or app centric management
    3. After approval, users in the group can install it without the Bad request error
     

     

    Best regards,

    Valantis

     

    ✅ If this helped solve your issue, please Accept as Solution so others can find it quickly.

    ❤️ If it didn’t fully solve it but was still useful, please click “Yes” on “Was this reply helpful?” or leave a Like :).

    🏷️ For follow-ups  @Valantis.

    📝 https://valantisond365.com/

    💼 LinkedIn

    ▶️ YouTube

  • VP-09031245-0 Profile Picture
    12 on at
    @Vish WRHello, this is not only happening with one user; it’s something that occurs with several. What I’m not sure about is whether users who use the agent need to have some kind of license, and if so, which one. In other words, if 1000 users are going to use the agent, do they all need to have a license? This didn’t happen before, so I’m not sure if it’s due to some update in the Power Platform.
  • Vish WR Profile Picture
    1,021 on at
     
    Does the user who uses the agent need a licence?
     
    When you share , have you grated the permission ???

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 618

#2
Haque Profile Picture

Haque 147

#3
Vish WR Profile Picture

Vish WR 140

Last 30 days Overall leaderboard