Creating a Calendar with Microsoft Graph times out

Info QITonline 0 Reputation points
2024-10-03T10:06:33.8333333+00:00

When I try to create a Calendar with Microsoft Graph (using the examples for PHP), I get a idle timout reached for \"https:\/\/graph.microsoft.com\/v1.0\/me\/calendars\

The same problem appears with the endpoint /users/{userId}/calendars.

Getting Calendar info, and getting Events does work as expected. I tried both with using a valid access token, or using an authorization code, and my scope is set to Calendars.ReadWrite (which is also enabled on Microsoft Entra admin center).

Can someone explain how I can fix this issue?

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

1 answer

Sort by: Most helpful
  1. Yakun Huang-MSFT 4,640 Reputation points Microsoft Vendor
    2024-10-04T06:10:15.4633333+00:00

    Hello Info QITonline,

    Thank you for reaching out to Microsoft Support!

    After testing in Graph Explorer, the endpoint works fine. The permission you need to grant is Calendars.ReadWrite delegated permission. Please parse the token through jwt.ms to check if it has valid permissions.

    Screenshot 2024-10-04 060853

    If that still doesn't work, please share with me the details of the error, as well as the resolution of the token.

    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.


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.