Graph List Calendars only returns 10 calendars

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

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 Calendar API
Microsoft Graph Applications API
Microsoft Graph Applications API
A Microsoft API that enables you to manage these resources and actions related to applications in Azure Active Directory.
425 questions
{count} votes

Accepted answer
  1. answered 2023-01-05T08:21:21.7+00:00
    Zehui Yao_MSFT 3,341 Reputation points Microsoft Employee

    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!

    No comments

1 additional answer

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

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

    No comments