MS Graph API - List channels API doesn't return full list of channels

Song Ren Huang 1 Reputation point
2023-01-05T02:30:43.043+00:00

Hi,
I'm trying to list all the channels with a specific team. However, there are some missing channels in the API response. There are 30 "active" private channels (as the creation limit) in my team, and it shows correctly in Microsoft Teams application. But when I list channels with API, it only response 24 private channels and there is no @odata.nextLink in the response. The same scenario happens when I list standard channels in that team.

Here is the format I send the request:
GET /teams/{team-id}/channels?$filter=membershipType eq 'private'

I tried to use /allChannels API as well, but it still acts like /channels API.

Below is the additional information:
tenant-id: dcb0e1d1-6cde-4420-a658-ede52a8bead1
team-id: bccdf0a4-ae60-45bc-8d4c-bd63a3106000

request-id: 7bdadf71-729a-49dc-b677-769fbec2d91a
client-request-id: 7bdadf71-729a-49dc-b677-769fbec2d91a
Date: Thu, 05 Jan 2023 02:15:26 GMT

Thank you.

Microsoft Security Microsoft Graph
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Shivam Dhiman 6,081 Reputation points
    2023-01-05T04:13:05.827+00:00

    Hi @Song Ren Huang

    I have tried to replicate your scenario, but it is working as expected and I am able to retrieve all the channels in Team.

    As per documentation, Please Note: This API supports admin permissions. Global admins and Microsoft Teams service admins can access teams that they are not a member of.

    So, if you do not have above roles, you can only retrieve the channels which you are part of as a member or owner.

    If you have one of the above roles and if you are still facing this issue, I would recommend you to raise a support case with Microsoft Graph, a Support Engineer will be able to assist you better. You can raise support ticket from http://aad.portal.azure.com/ or https://admin.microsoft.com/#/support/requests.

    Hope this helps.

    If the answer is helpful, please click Accept Answer and kindly upvote. 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.