The channel was successfully created using the Graph API, but user2 failed to join

leeys 21 Reputation points

The channel was successfully created using the Graph API, but user2 failed to join.
What is the reason for this?

create channel API:{{TeamId}}/channels

Post Body:

      "@odata.type": "",
      "membershipType": "private",
      "displayName": "TestPriv2",
      "description": "This channel is where we debate all future architecture plans",
                "@odata.type": "#microsoft.graph.aadUserConversationMember",
                "user@odata.bind": "'user1id')",
                "roles": ["owner"]
                "@odata.type": "#microsoft.graph.aadUserConversationMember",
                "user@odata.bind": "'user2id')",
                "roles": []
Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
5,895 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.
1,873 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Sharon Zhao-MSFT 24,706 Reputation points Microsoft Vendor

    @leeys ,

    Do you try to add members from the UI?

    As we are mainly responsible for general issue of Microsoft Teams. Your question which is involved in development is not supported by us.

    I saw the example 2 in this link, it only contains one user. Perhaps, it needs to specific the role of user2 as “member”.

    To get better response, you can post this case in Microsoft Teams developer forum. You will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction. Thank you for your understanding.

    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.