NoPermissionsInAccessToken while trying to get events, create events

Meirzhan Askerbekov 1 Reputation point
2021-03-02T11:44:02.503+00:00

I have invited user for my app, give all permissions on ![73376-%D1%81%D0%BD%D0%B8%D0%BC%D0%BE%D0%BA.png][1] [1]: /api/attachments/73376-снимок.png?platform=QnA So then logged-in with this user and tried to create, get list events: GET https://graph.microsoft.com/v1.0/me/calendar/events

{"error":{"code":"NoPermissionsInAccessToken","message":"The token contains no permissions, or permissions can not be understood.","innerError":{"oAuthEventOperationId":"24644fd6-b13a-4707-aeb9-c5be029af47c","oAuthEventcV":"CqeSMPwQw0Gth7U1tBxI5w.1.1.1","errorUrl":"https://aka.ms/autherrors#error-InvalidGrant","requestId":"83383f44-dfee-41f6-a2e3-1e0282b0151a","date":"2021-03-02T11:35:14"}}}

Microsoft Graph Azure AD API
Microsoft Graph Azure AD API
A Microsoft API that queries the user's profile, finds other users, manages organizational relationships, tracks assignments, or creates original solutions that incorporate existing organizational data.
254 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Deva-MSFT 2,241 Reputation points Microsoft Employee
    2021-03-10T19:13:56.2+00:00
    • You can paste your token into https://jwt.ms and see if the payload really lists the needed permissions. Otherwise re-check which permissions you gave and maybe re-run the admin consent for your application.
    • Try the same graph api call in Microsoft Graph explorer and see if you can access the events api. If yes, then compare the tokens and see what permissions that you're missing.
    0 comments No comments