question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

New command: teams channel member remove

See original GitHub issue

Usage

teams channel member remove

Description

Removes user from the specified Microsoft Teams private channel

Options

Option Description
--teamId [teamId] The Id of the Microsoft Team. Specify either teamId or teamName but not both.
--teamName [teamName] The name of the Microsoft Team. Specify either teamId or teamName but not both.
--channelId [channelId] The Id of the Microsoft Team channel. Specify either channelId or channelName but not both.
--channelName [channelName] The name of the Microsoft Team channel. Specify either channelId or channelName but not both.
--userName [userName] User’s UPN (user principal name, eg. johndoe@example.com). Specify either userName, userId or id but not multiple.
--userId [userId] User’s Azure AD Id. Specify either userName, userId or id but not multiple.
--id [id] Channel membership Id of a user. Specify either userName, userId or id but not multiple.
--confirm Suppress the confirmation prompt.

Additional Info

Docs: Remove member from channel

Discussed in #3168

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:18 (18 by maintainers)

github_iconTop GitHub Comments

4reactions
plambercommented, Apr 9, 2022

Hi, conversationmember command should only be deleted in the rename process. In the rename process we have to ensure that the conversationmember command becomes an alias of the teams channel member command to ensure we do not have breaking changes. The conversationmember command is already in production.

See for example https://github.com/pnp/cli-microsoft365/pull/2690

I added a note to https://github.com/pnp/cli-microsoft365/issues/3215#issuecomment-1093676006 which is renaming the channel member list to teams channel member list.

We should also consider the teams conversationmember remove command, remove the old command and add it as alias for this one

Cheers, Patrick

3reactions
garrytrindercommented, Apr 6, 2022

Good catch @Jwaegebaert 👍

I vote for teams channel member [verb].

Read more comments on GitHub >

github_iconTop Results From Across the Web

Remove-TeamChannelUser (MicrosoftTeamsPowerShell)
To turn an existing Owner into an Member, specify role parameter as Owner. Note: last owner cannot be removed from the private channel....
Read more >
Remove someone from a channel - Slack
What to expect · Anyone can be removed from a channel by those with permission. · All members and guests need to be...
Read more >
teams channel remove - Microsoft 365 PnP
Options¶ ; --teamId [teamId]: The ID of the team to which the channel to remove belongs. Specify either teamId or teamName but not...
Read more >
Command line tools - Mattermost Documentation
Permanently delete teams (use cautiously - database backup recommended before use) ... --display_name "My New Channel" bin/mattermost channel create --team ...
Read more >
Microsoft Teams Integration Guide - PagerDuty Knowledge Base
A PagerDuty Admin or Account Owner can remove a service to channel connection via PagerDuty's Microsoft Teams extension page. Navigate to Integrations ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found