Microsoft Graph API: set general channel settings

Microsoft Graph API: set general channel settings
0

Upvotes

Upvote

 May 21 2021
0 Comments 
New

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

 

Ref: https://stackoverflow.com/questions/67228203/microsoft-graph-api-set-general-channel-settings

Attachments:

DOpOH.png