Neha Singla
Neha Singla

Reputation: 65

Inconsistency in MS Teams graph api - GET channels

In the response of GET - https://graph.microsoft.com/v1.0/teams/{team_id}/channels?$filter=membershipType eq 'private'.

I am getting channels which are not visible in the Teams app interface. e.g.

{"id": "", "createdDateTime": "", "displayName": "testingteam", "description": null, "isFavoriteByDefault": null, "email": null, "webUrl": null, "membershipType": "private" },

Is there any key using which i can differentiate these forbidden channels from the valid ones?

Upvotes: 0

Views: 118

Answers (1)

Prithvi-MSFT
Prithvi-MSFT

Reputation: 63

We are not able to repro this issue. The graph api returned correct response. Can you check if all webURL part for all such teams you are getting is null. If yes you can add filter ($filter=webUrl ne null).

Upvotes: 0

Related Questions