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 / PVA skill with Oauth 4...
Copilot Studio
Answered

PVA skill with Oauth 404 on GetToken

(0) ShareShare
ReportReport
Posted on by 9

I am building a PVA skill that must authenticate to another system with Oauth.  I have successfully published the skill and added it to my PVA bot. However, I am seeing a 404 at api.botframework.com/api/usertoken/GetToken when the skill attempts to run.  I have tested the endpoints in the other system using Postman and I can successfully receive a token.  I have verified the Oauth connection in the bot channel settings in Azure where the "test connection" feature is also able to successfully receive a token.  The user account is the same under all three conditions. Could it be something in my Azure App Registration? I am sure it is something silly that I missing, but I'm stumped.

Categories:
I have the same question (0)
  • Jameslew_MSFT Profile Picture
    Microsoft Employee on at

    Do you have any more detail beyond the 404?  This is a little dated, but the symptoms match up with what you described: /api/usertoken/GetToken 404 - Don't use a redirect URL (bogdanbujdea.dev)

  • Verified answer
    z-taylor Profile Picture
    9 on at

    I had found that article previously, but it wasn't much help. Much of my issue seemed to stem from outdated documentation for the Bot Framework Composer package that I was using.

     

    I am using a "Generic Oauth 2" service provider and attempting to access a ServiceNow instance. The issue was apparently that ServiceNow has intentionally broken/disallowed the client_credentials grant type that I was attempting to use.

     

    From what I can tell, it looks like ServiceNow was receiving the token request with the client_credentials grant type and redirecting to api.botframework.com/api/usertoken/GetToken with a 'guest' user Id.  ServiceNow does not allow 'guest' user authorizations and this was resulting in a 404.

     

    Adding an "Authenticate" step to my Bot Framework Composer dialog to retrieve a Code first resolved the issue.

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!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 370

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 184 Super User 2026 Season 1

#3
chiaraalina Profile Picture

chiaraalina 57 Super User 2026 Season 1

Last 30 days Overall leaderboard