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

Community site session details

Session Id :
Copilot Studio - General
Suggested answer

Message "User (C2) connections must use Azure Active Directory authentication" on Publish

(0) ShareShare
ReportReport
Posted on by 9
For a few days now, I've been unable to publish my Copilot Studio agents that use Power Automate flows. This only happens to agents that don't use/use authentication.
I get the error:
 
[
{
"diagnosticResult": [
{
"$kind": "ElementValidationError",
"errorCode": "UserConnectionRequiresAuthentication",
"errorMessage": "User (C2) connections must use Azure Active Directory authentication."
}
],
"componentDisplayName": "Test",
"componentId": "e0f45144-db76-483a-8a95-362b5d8e6eea",
"diagnosticErrorCount": 1
}
]
 
Notes:
. The issue only occurs when authentication isn't used.
. The issue occurs when invoking any Power Automate flow from Copilot Studio.
. The problem occurs in any topic (not just "conversation improvement").
. I tested flows with and without parameters.
. I tested with existing agents and creating new ones.
. I also created a new flow that does nothing and doesn't receive parameters. Still, the problem persists.
In short: publishing from any agent only works if authentication is present, or if it isn't, the agent can't use any Power Automate flows.
Categories:
I have the same question (8)
  • Adriano Silveira Profile Picture
    9 on at
    Message "User (C2) connections must use Azure Active Directory authentication" on Publish
  • Suggested answer
    SARFARAZ AHMED MUFTI Profile Picture
    6 on at
    Message "User (C2) connections must use Azure Active Directory authentication" on Publish
    MS will provide a fix on this.
     

    Known issue:
    https://admin.powerplatform.microsoft.com/support?serviceHealthId=PP1151711#service-health
    MS Current Status: Our investigation has identified that a recent service update introduced a code regression, which inadvertently marks valid agents as invalid, resulting in impact. We are preparing a fix that will be applied to the impacted infrastructure to mitigate the issue, following successful validations.
  • SARFARAZ AHMED MUFTI Profile Picture
    6 on at
    Message "User (C2) connections must use Azure Active Directory authentication" on Publish
    I have been facing the same issue when publishing my bot agent.
  • Adriano Silveira Profile Picture
    9 on at
    Message "User (C2) connections must use Azure Active Directory authentication" on Publish
    The copilot agent does not perform authentication (it is public). It invokes flows from Power Automate. As a test, I created a new flow that does nothing, it only receives the agent's request and responds. Even so, the error in publishing the agent occurs. Until last week it did not happen. There was no change in the agent. I imagine it could be some issue/bug in the Power Platform.
     
     
  • Suggested answer
    Michael E. Gernaey Profile Picture
    48,414 Super User 2025 Season 2 on at
    Message "User (C2) connections must use Azure Active Directory authentication" on Publish
     
    What is your configuration for the flows and tools/agent flows as it relates to authentication?
     
    Maker-provided credentials?
    End-User credentials?
    Re-Only settings?
    User authentication settings?
     
    Depending on these it will impact as if the Agent / Tool settings and or the Flow requires authentication then its going to require it, which is most of the time.
     

    If these suggestions help resolve your issue, Please consider Marking the answer as such and also maybe a like.

    Thank you!
    Sincerely, Michael Gernaey

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

MS.Ragavendar – Community Spotlight

We are honored to recognize Ragavendar Swaminatha Subramanian as our September…

Leaderboard > Copilot Studio

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 235 Super User 2025 Season 2

#3
trice602 Profile Picture

trice602 166 Super User 2025 Season 2

Last 30 days Overall leaderboard