Graph API returns method not allowed error

Kasif Ali 21 Reputation points
2020-11-07T10:53:32.823+00:00

hi,

I am trying to update an application using graph API but it keeps returning methodnotallowed error. i have provided the consent too but still same error.

38057-image.png

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
21,906 questions
0 comments No comments
{count} votes

Accepted answer
  1. AmanpreetSingh-MSFT 56,631 Reputation points
    2020-11-09T06:51:07.627+00:00

    Hi @Kasif Ali · Welcome to QnA Platform and thanks for your query.

    Could you please share which property of the application you are trying to update?

    Also, in the screenshot that you have shared, the Directory.AccessAsUser.All permission is not consented.

    38200-image.png

    Since the Directory.AccessAsUser.All allows the app to have same access to the information as signed in user, the signed in user must have permission to update the app as well. Which means, the signed in user must be assigned with application administrator or cloud application administrator directory role as well.

    Please let me know if these changes help resolving the issue. Feel free to tag me in your reply if you need any further help to resolve this issue.

    -----------------------------------------------------------------------------------------------------------

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

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.