Issue adding member to private channel with Graph API

Martin Coupal 1 Reputation point
2021-06-30T21:15:29.563+00:00

Hi, I'm provisioning a Microsoft Teams with graph API and have a weird behavior when adding members to a private channel.

When I create the private channel I also provide the members list. After the private channel is sucessfully created, if I go into Microsoft Teams, I see the private channel but I do not see the members but only the owner. However, If I go into Teams administration interface, I see the owner and member in the private channel.....
Also in the SharePoint site, I see the member in the SP member group... Why I'm not seeing the members of the private channel in "manage channel" from Teams client?
Note: "roles": [] is the same as "roles": ['Member']

Create private channel

POST https://graph.microsoft.com/v1.0/teams/57fb72d0-d811-46f4-8947-305e6072eaa5/channels
{
"@odata.type": "#Microsoft.Graph.channel",
"membershipType": "private",
"displayName": "My First Private Channel",
"description": "This is my first private channels",
"members":
[
{
"roles": [],
"user@odata.bind": "https://graph.microsoft.com/v1.0/users('xxxx')",
"@odata.type": "#microsoft.graph.aadUserConversationMember"
},
{
"roles": [
"owner"
],
"user@odata.bind": "https://graph.microsoft.com/v1.0/users('xxxx')",
"@odata.type": "#microsoft.graph.aadUserConversationMember"
}
]
}

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,537 questions
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
2,832 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Wajeed-MSFT 231 Reputation points Microsoft Employee
    2021-07-01T19:03:48.347+00:00

    @Martin Coupal - I am able to repor this issue. I have raise bug for this, I'll keep this thread updated with latest updates.
    I see same issue is raised on other community forum as well.

    0 comments No comments