AADSTS65005: The application 'api:/xxxxxxxxxxxxxxxx' asked for scope 'windchill' that doesn't exist.

Kumar, Sourav 0 Reputation points
2025-02-21T07:32:24.0966667+00:00

Getting this error: AADSTS65005: The application 'api:/xxxxxxxxxxxxxxxx' asked for scope 'windchill' that doesn't exist.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,113 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Manu Philip 19,591 Reputation points MVP
    2025-02-21T08:15:46.8633333+00:00

    Hi Kumar, Sourav

    The error says the required scopes are not listed in your app registration and to assign it

    Go to the app's API Permissions section and assign the required permissions. For example, if the application is meant to open a Calendar, app should have permissions such as

    • Calendars.ReadWrite
    • User.Read

    If the required permissions are not present, select the "Add a permission" option and then select "Microsoft Graph API" Based on the type of token you require select the appropriate option like delegated permission (if you want to access token in user's context) and application permission (if you want the access-token in application's context) and then search for the required permissions "Calendars.ReadWrite" and "User.Read" and add them by selecting "Add permissions"

    Give it a try after that

    Hope this helps.


    --please don't forget to upvote and Accept as answer if the reply is helpful--

    0 comments No comments

  2. CarlZhao-MSFT 45,496 Reputation points
    2025-02-21T09:23:54.73+00:00

    Hi @Kumar, Sourav

    Is "windchill" the scope of your exposed API? If yes, then try granting that scope to the client app and granting admin consent for that scope.

    User's image

    Hope this helps.

    If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.