Mar 09 2021 10:53 PM
I am unable to add members to the private channel at the time of creation.
i am only able to add Owners but member list is always coming empty.
for refrence below is the body
NOTE: #### is replaced by meaning fulldata in actual code
{
"@odata.type": "#Microsoft.Graph.channel",
"displayName": "#######",
"description": "#######",
"membershipType":"private",
"members": [
{
"@odata.type":"#microsoft.graph.aadUserConversationMember",
"user@odata.bind":"https://graph.microsoft.com/beta/users('####')",
"roles":["Owner"]
},
{
"@odata.type":"#microsoft.graph.aadUserConversationMember",
"user@odata.bind":"https://graph.microsoft.com/beta/users('#####')",
"roles":["Owner"]
},
{
"@odata.type":"#microsoft.graph.aadUserConversationMember",
"user@odata.bind":"https://graph.microsoft.com/beta/users('#####')",
"roles":["member"]
}
]
}
with this body, Private channel is created but it only contains the owners information and member's information is coming as empty.
Also please clarify can we actually add both owners and members at the same time ? if so then whats missing in the code ?