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

leeys 21 Reputation points
2020-11-11T10:07:33.44+00:00

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

create channel API:
https://graph.microsoft.com/v1.0/teams/{{TeamId}}/channels

Post Body:

{
      "@odata.type": "#Microsoft.Graph.channel",
      "membershipType": "private",
      "displayName": "TestPriv2",
      "description": "This channel is where we debate all future architecture plans",
      "members":
        [
            {
                "@odata.type": "#microsoft.graph.aadUserConversationMember",
                "user@odata.bind": "https://graph.microsoft.com/v1.0/users('user1id')",
                "roles": ["owner"]
            },
            {
                "@odata.type": "#microsoft.graph.aadUserConversationMember",
                "user@odata.bind": "https://graph.microsoft.com/v1.0/users('user2id')",
                "roles": []
            }
        ]
    }
Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,047 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,836 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Sharon Zhao-MSFT 25,051 Reputation points Microsoft Vendor
    2020-11-12T05:23:09.337+00:00

    @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.