Permission issue Graphs API - Unable to update/read permission

MB 21 Reputation points
2022-07-21T20:58:40.017+00:00

My goal is to make a simple website that reads my Microsoft To-Do list.

I've made an app in Azure, added a few permissions to test with and made the connection in my website.
Connection is ok with personal authentication, but I keep getting this error message;

{"error":{"code":"UnknownError","message":"","innerError":{"date":"2022-07-21T20:46:40","request-id":"**","client-request-id":""}}}  

I have removed both IDs for privacy reasons.

Now I have noticed I get this same error when I try the same endpoint in the Graph Explorer, without setting permissions. After specifically consenting these permissions in the Graph Explorer, I get the proper result.

I tried adding, removing, granting admin, multiple permissions but with no result. While doing this I added another issue; whenever the website asks log-in through the oAuth, it asks way too many permission then configured in the app. I searched everywhere through Azure to remove them, but again without result. (Also tried removing them with Powershell, no result)

If more information is needed, please ask.

Microsoft Security | Microsoft Graph
{count} votes

Answer accepted by question author
  1. Zehui Yao_MSFT 5,881 Reputation points
    2022-07-22T16:15:07.993+00:00

    Hi @MB , I tested it locally using the postman tool and it worked. When authenticating using the authorization code grant flow, you can change '{tenant}' to 'common' or 'consumers' so that personal account authentication can be used, and don't forget to add tasks.readwrite to scope.
    223837-untitled.png
    At the same time it will return a similar M.R3_BAY... the code that finally got something like EwB4A8... Token, hope to help you.
    223838-untitled2.png
    223870-untitled3.png


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


0 additional answers

Sort by: Most helpful

Your answer

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