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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / Copilot Studio S2S Aut...
Copilot Studio
Answered

Copilot Studio S2S Authentication Error: "EnableS2SAuthFeature not enabled"

(1) ShareShare
ReportReport
Posted on by 5

Hi everyone, I am new to the Copilot Studio and following this document:
https://learn.microsoft.com/en-us/microsoft-copilot-studio/publication-integrate-web-or-native-app-m365-agents-sdk?tabs=dotnet#configure-your-app-registration-for-service-principal

using the example console app in the document:
https://github.com/microsoft/Agents/tree/main/samples/dotnet/copilotstudio-client

I want to call copilot agent api using UseS2SConnection and already added the Application permission - Copilot Studio.Copilots.Invoke to my app registration.




But my programme throws this error:
 
ThirdPartyAuthenticatedPublishedBotController.EnableS2SAuthFeature (Feature) not enabled

      System.Net.Http.HttpRequestException: Error sending request: MethodNotAllowed. Feature ThirdPartyAuthenticatedPublishedBotController.EnableS2SAuthFeature (Feature) not enabled.
         at Microsoft.Agents.CopilotStudio.Client.CopilotClient.PostRequestAsync(HttpRequestMessage req, CancellationToken ct)+MoveNext()
         at Microsoft.Agents.CopilotStudio.Client.CopilotClient.PostRequestAsync(HttpRequestMessage req, CancellationToken ct)+System.Threading.Tasks.Sources.IValueTaskSource<System.Boolean>.GetResult()

Does anyone know where I should turn on this "ThirdPartyAuthenticatedPublishedBotController.EnableS2SAuthFeature" in Copilot Studio? I've checked the settings but can't find it.


Thanks all
Categories:
I have the same question (0)
  • Verified answer
    fchopo Profile Picture
    8,003 Moderator on at
    Hi,
    According to this thread in GitHub: https://github.com/microsoft/Agents-for-python/issues/67#issuecomment-3134104191 it seems MS Support needs to activate this feature in your environment / tenant. :(

    Hope it helps!
    Ferran

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Copilot Studio

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 250 Super User 2025 Season 2

#2
Romain The Low-Code Bearded Bear Profile Picture

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

#3
S-Venkadesh Profile Picture

S-Venkadesh 103 Moderator

Last 30 days Overall leaderboard