Invalid resource. The client has requested access to a resource which is not listed in the requested permissions in the client application

WMio Connectors 121 Reputation points
2020-03-09T14:27:20.213+00:00

I created the OAuth app to perform sharepoint authentication, When a user, Non-Microsoft email id(example.com) is trying to authenticate on my app, then the user is getting "Invalid resource. The client has requested access to a resource which is not listed in the requested permissions in the client application". I am using oauth2 v1.0 . can anyone help me with that, how to modify this error. This question is a continuation to this https://github.com/MicrosoftDocs/azure-docs/issues/49563

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

1 answer

Sort by: Most helpful
  1. AmanpreetSingh-MSFT 56,666 Reputation points
    2020-03-10T07:42:08.253+00:00

    @WMio Connectors Try decoding your token at https://jwt.ms and check if the audience is matching with resource ID of SharePoint. If it is different, you need to update your request to include appropriate resource ID.

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

    Please "Accept as answer" wherever the information provided helps you to help others in the community.

    1 person found this answer 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.