Graph List Calendars only returns 10 calendars

Cederic 21 Reputation points
2023-01-03T09:30:25.793+00:00

I have a problem to retrieve all calendars from a shared mailbox.
There are 15 calendars in this account but only the first 10 are returned. In outlook i can access all 15 calendars.

https://graph.microsoft.com/v1.0/users/myemail[@](/users/na/?userId=19d591f5-0000-0003-0000-000000000000).com/calendars

I was trying with the $top parameter without success.
When i use the $count parameter it returns 10 .

What can be the problem here?

I think the permissions are also set correctly:
275614-afbeelding.png

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

Accepted answer
  1. Zehui Yao_MSFT 5,826 Reputation points
    2023-01-05T08:21:21.7+00:00

    Hi @Cederic ,

    Great to know that it works now and thanks for sharing the update here.

    By the way, since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others.". and according to the scenario introduced here: Answering your own questions on Microsoft Q&A, I would make a brief summary of this thread:

    [Graph List Calendars only returns 10 calendars]

    Issue Symptom:
    have a problem to retrieve all calendars from a shared mailbox.

    Current status:
    The issue has been resolved by removing delegated permission.

    You could click the "Accept Answer" button for this summary to close this thread, and this can make it easier for other community member's to see the useful information when reading this thread. Thanks for your understanding!

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Cederic 21 Reputation points
    2023-01-03T10:44:19.207+00:00

    I found the solution. I had both delegated and application permissions set for the calendars.
    It's working correctly after removing the delegated permission .

    0 comments No comments