ErrorAccessDenied errors on calendars endpoint

Scheduling 0 Reputation points
2024-10-21T17:26:04.7766667+00:00

We are seeing "ErrorAccessDenied" errors on the /calendars endpoint with error message: "Access is denied. Check credentials and try again". I'm curious what is causing these credentials to be become invalid - is it due to invalid scopes?

Here are two samples of requests that failed with ErrorAccessDenied:

{
 client_request_id: "ca6ce25d-897c-408a-91bd-8b7a1bcd9d44",
 request_id: "94ef3617-b5b1-4169-8434-892fea45c897",
 x_ms_ags_diagnostic: "{\"ServerInfo\":{\"DataCenter\":\"East US\",\"Slice\":\"E\",\"Ring\":\"5\",\"ScaleUnit\":\"003\",\"RoleInstance\":\"BL6PEPF0000C787\"}}", :date=>"Mon, 21 Oct 2024 01:34:48 GMT"
}

{
 client_request_id: "f9d29055-0734-4eab-be7f-695a069d1210",
 request_id: "73f1158f-6232-4162-a13c-584618a1a54d",
 x_ms_ags_diagnostic: "{\"ServerInfo\":{\"DataCenter\":\"East US 2\",\"Slice\":\"E\",\"Ring\":\"5\",\"ScaleUnit\":\"002\",\"RoleInstance\":\"BN2PEPF000043D9\"}}", :date=>"Mon, 21 Oct 2024 16:23:42 GMT"
}

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,140 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Yakun Huang-MSFT 5,490 Reputation points Microsoft Vendor
    2024-10-22T06:56:21.7666667+00:00

    Hello Scheduling,

    Thank you for reaching out to Microsoft Support!

    Here is a similar case for your reference, please try to remove the excess permissions and keep only the necessary permissions, for example: Calendars.Read.

    If this attempt does not work, please share the result of parsing a token in jwt.ms.

    Hope this helps.

    If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.

    0 comments No comments

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.