question

MeirzhanAskerbekov-0599 avatar image
0 Votes"
MeirzhanAskerbekov-0599 asked ·

NoPermissionsInAccessToken while trying to get events, create events

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]: /answers/storage/attachments/73376-снимок.png 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-identity
снимок.png (15.4 KiB)
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

Deva-MSFT avatar image
0 Votes"
Deva-MSFT answered ·
  • 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.

·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.