teams conversationmember list¶
Lists members of a channel in Microsoft Teams in the current tenant
Usage¶
m365 teams conversationmember list [options]
Options¶
-i, --teamId [teamId]
- The ID of the team where the channel is located. Specify either
teamId
orteamName
, but not both. --teamName [teamName]
- The name of the team where the channel is located. Specify either
teamId
orteamName
, but not both. -c, --channelId [channelId]
- The ID of the channel for which to list members. Specify either
channelId
orchannelName
, but not both. --channelName [channelName]
- The name of the channel for which to list members. Specify either
channelId
orchannelName
, but not both. -h, --help
- output usage information
--query [query]
- JMESPath query string. See http://jmespath.org/ for more information and examples
-o, --output [output]
- Output type.
json,text
. Defaulttext
--verbose
- Runs command with verbose logging
--debug
- Runs command with debug logging
Examples¶
List all members of a channel based on their ids
m365 teams conversationmember list --teamId 47d6625d-a540-4b59-a4ab-19b787e40593 --channelId 19:586a8b9e36c4479bbbd378e439a96df2@thread.skype
List all members of a channel based on their names
m365 teams conversationmember list --teamName "Human Resources" --channelName "Private Channel"