Status Code: Forbidden; Reason: Access is denied. Check credentials and try again

Alex Wilber 1 Reputation point
2022-04-14T15:15:12.077+00:00

We use https://learn.microsoft.com/en-us/graph/auth-v2-user flow.
User grants scope: ["email", "openid", "profile", "https://graph.microsoft.com/Calendars.ReadWrite"]

We got exception when we create subscription to event updates for user ({resource: 'me/events'}):
Operation: Create; Exception: [Status Code: Forbidden; Reason: Access is denied. Check credentials and try again.]

It reproducible for parts of our user. Can it be related to not approved status of our Microsoft application and reaching the some limit?

Thanks in advance

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

2 answers

Sort by: Most helpful
  1. CarlZhao-MSFT 37,296 Reputation points
    2022-04-15T10:04:37.413+00:00

    Hi @Alex Wilber

    Parse the token, make sure you have the Calendars.ReadWrite delegated permission.

    193356-image.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.


  2. Alex Wilber 1 Reputation point
    2022-04-17T10:12:39.3+00:00

    Also for some users we started to get "Operation: Create; Exception: [A task was canceled.]" It's strange because we have the same implementation flow.

    0 comments No comments