teams channel member remove
Remove the specified member from the specified Microsoft Teams private or shared team channel
Usage
m365 teams channel member remove [options]
Options
--teamId [teamId]The Id of the Microsoft Teams team. Specify either
teamIdorteamNamebut not both--teamName [teamName]The display name of the Microsoft Teams team. Specify either
teamIdorteamNamebut not both--channelId [channelId]The Id of the Microsoft Teams team channel. Specify either
channelIdorchannelNamebut not both--channelName [channelName]The display name of the Microsoft Teams team channel. Specify either
channelIdorchannelNamebut not both--userName [userName]User's UPN (user principal name, e.g. johndoe@example.com). Specify either userName, userId or id but not multiple.
--userId [userId]User's Microsoft Entra ID. Specify either userName, userId or id but not multiple.
--id [id]Channel member Id of a user. Specify either userName, userId or id but not multiple.
-f, --forceDon't prompt for confirmation
-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
Remove the user johndoe@example.com from the Microsoft Teams team with id 00000000-0000-0000-0000-000000000000 and channel id 19:00000000000000000000000000000000@thread.skype
m365 teams channel member remove --teamId 00000000-0000-0000-0000-000000000000 --channelId 19:00000000000000000000000000000000@thread.skype --userName "johndoe@example.com"
Remove the user with id 00000000-0000-0000-0000-000000000000 from the Microsoft Teams team with name Team Name and channel with name Channel Name
m365 teams channel member remove --teamName "Team Name" --channelName "Channel Name" --userId 00000000-0000-0000-0000-000000000000
Response
The command won't return a response on success.