microsoftgraph / microsoftgraph/msgraph-sdk-dotnet
Creating private channel not working in version 5.13
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 789
- Forks
- 264
- Avg merge
- 15h 17m
- Merged PRs (30d)
- 3
Description
Describe the bug
Creating Private Team Channel not working in version 5.13
To Reproduce
Working Code from 5.12
privateChannel.OdataType = "#Microsoft.Graph.channel";
privateChannel.Members = new();
foreach (var owner in owners)
{
privateChannel.Members.Add(
new ConversationMember()
{
Roles = new List<string>() { "owner" },
OdataType = "#microsoft.graph.aadUserConversationMember",
AdditionalData = new Dictionary<string, object>
{
{
"user@odata.bind",
$"{this.graph.RequestAdapter.BaseUrl}/users('{owner}')"
},
}
}
);
}
await privateChannelPolicy.ExecuteAsync(
() => this.graph.Teams[group.Id].Channels.PostAsync(privateChannel)
);
Not working anymore in Version 5.13
Response:
{"code":"BadRequest","message":"CreateChannel_Private: Cannot create private channel, no members specified when calling from an Application."}
Can't see any changes to docu if there was a wanted change to the behavior to this.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the provided private-channel creation call through graph.Teams[group.Id].Channels.PostAsync and compare its behavior between SDK versions 5.12 and 5.13. Reproduce the BadRequest response with the shown member construction, then trace the request serialization or API contract change; done means identifying the regression or documenting the required behavior and validating it against the reproduction.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- api
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100