giuseppedl's avatar
giuseppedl
Copper Contributor
May 21, 2021
Status:
New

Microsoft Graph API: set general channel settings

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

No CommentsBe the first to comment