Seems like there isn't a way to set primary channel settings using Graph API
I need to set Primary Channel ModerationSettngs.UserNewMessageRestriction = UserNewMessageRestriction.Moderators but:
- If I add this setting to the Team creation (await graphClient.Teams.Request().AddAsync(team)) it's ignored
- If i try to change this settings after I created the Team using await graphClient.Teams[myTeamId].Channels[myChannelId].Request().UpdateAsync(channel) I get an error that tell me that "Primary channel cannot be patched"
I'm using Microsoft Graph API beta version