How to enable User.Read.All in app? It shows 'not granted for Microsoft'.

Siqi Yang 10 Reputation points Microsoft Employee
2023-09-19T12:37:57.5966667+00:00

Use the method 'Get access without a user' to get access token. (Reference link: https://learn.microsoft.com/en-us/graph/auth-v2-service?context=graph%2Fapi%2F1.0&view=graph-rest-1.0&tabs=http)

But when I use the access token to get users, it shows 'Insufficient privileges to complete the operation'.

User's image

Already add User.Read.All to application, but shows not granted for Microsoft. Is it the reason why the access token doesn't have insufficient privileges? How can I solve the problem?

User's image

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,771 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Tushar Kumar 3,321 Reputation points MVP
    2023-09-19T12:51:29.2433333+00:00

    Hi

    The 4th Step "Request administrator consent" that requires and adminstrator to provide Grant admin consent.

    You can follow the below link for the same :

    https://learn.microsoft.com/en-us/azure/active-directory/manage-apps/grant-admin-consent?pivots=portal

    Please Click "Accept as Answer" if this helps.

    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.