teams messagingsettings set
Updates messaging settings of a Microsoft Teams team
Usage
m365 teams messagingsettings set [options]
Options
-i, --teamId <teamId>The ID of the Microsoft Teams team for which to update messaging settings.
--allowUserEditMessages [allowUserEditMessages]Set to
trueto allow users to edit messages and tofalseto disallow it.--allowUserDeleteMessages [allowUserDeleteMessages]Set to
trueto allow users to delete messages and tofalseto disallow it.--allowOwnerDeleteMessages [allowOwnerDeleteMessages]Set to
trueto allow owner to delete messages and tofalseto disallow it.--allowTeamMentions [allowTeamMentions]Set to
trueto allow @team or @[team name] mentions and tofalseto disallow it.--allowChannelMentions [allowChannelMentions]Set to
trueto allow @channel or @[channel name] mentions and tofalseto disallow it.
-h, --help [help]Output usage information. Optionally, specify which section of command's help you want to see. Allowed values are
options,examples,remarks,permissions,response,full. Default isoptions.--query [query]JMESPath query string. See http://jmespath.org/ for more information and examples.
-o, --output [output]Output type.
json,text,csv,md,none. Defaultjson.--verboseRuns command with verbose logging.
--debugRuns command with debug logging.
Examples
Allow users to edit messages in channels.
m365 teams messagingsettings set --teamId '00000000-0000-0000-0000-000000000000' --allowUserEditMessages true
Disallow users to delete messages in channels.
m365 teams messagingsettings set --teamId '00000000-0000-0000-0000-000000000000' --allowUserDeleteMessages false
Response
The command won't return a response on success.