Graph API Insufficient privileges to complete the operation.

Zach Minton 0 Reputation points
2023-06-24T16:56:55.6433333+00:00

I'm currently writing a Blazor application as a re-write to an older web forms application as this is a web assembly application it will need to use delegated permission vs application permissions like on the older web forms app.

I seem to be having an issue that looks like a bug as per the permissions located here:
User's image

I have that permission granted on the app registration even add application permission after the fact to test it
User's image

When I decode the Token that I'm am given by the application the permission is there
User's image

However calling a delete or a post on this api endpoint still gives me an Insufficient Privilege error.

When done via Postman with the token:

User's image

When called inside the application:
User's image

If I log into the application with my global admin account then the delete or a post will work. Why will this not work with normal users that have the required api permission and scope on the token.

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

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.