teams channel list¶
Lists channels in the specified Microsoft Teams team
Usage¶
m365 teams channel list [options]
Options¶
-i, --teamId [teamId]
- The ID of the team to list the channels of. Specify either
teamId
orteamName
but not both --teamName [teamName]
- The display name of the team to list the channels of. Specify either
teamId
orteamName
but not both --type [type]
- Filter the results to only channels of a given type:
standard
,private
,shared
. By default all channels are listed. -h, --help [help]
- Output usage information. Optionally, specify which section of command's help you want to see. Allowed values are
options
,examples
,remarks
,response
,full
. Default isfull
. --query [query]
- JMESPath query string. See http://jmespath.org/ for more information and examples
-o, --output [output]
- Output type.
json,text,csv,md
. Defaultjson
--verbose
- Runs command with verbose logging
--debug
- Runs command with debug logging
Examples¶
List all channels in a specified Microsoft Teams team with id 00000000-0000-0000-0000-000000000000
m365 teams channel list --teamId 00000000-0000-0000-0000-000000000000
List all channels in a specified Microsoft Teams team with name Team Name
m365 teams channel list --teamName "Team Name"
List private channels in a specified Microsoft Teams team with id 00000000-0000-0000-0000-000000000000
m365 teams channel list --teamId 00000000-0000-0000-0000-000000000000 --type private
Response¶
[
{
"id": "19:B3nCnLKwwCoGDEADyUgQ5kJ5Pkekujyjmwxp7uhQeAE1@thread.tacv2",
"createdDateTime": "2022-10-26T15:43:31.954Z",
"displayName": "Channel Name",
"description": "This team is about Contoso",
"isFavoriteByDefault": null,
"email": "TeamsName@contoso.onmicrosoft.com",
"tenantId": "446355e4-e7e3-43d5-82f8-d7ad8272d55b",
"webUrl": "https://teams.microsoft.com/l/channel/19%3AB3nCnLKwwCoGDEADyUgQ5kJ5Pkekujyjmwxp7uhQeAE1%40thread.tacv2/TeamsName?groupId=aee5a2c9-b1df-45ac-9964-c708e760a045&tenantId=446355e4-e7e3-43d5-82f8-d7ad8272d55b&allowXTenantAccess=False",
"membershipType": "standard"
}
]
id displayName
------------------------------------------------------------ -----------
19:B3nCnLKwwCoGDEADyUgQ5kJ5Pkekujyjmwxp7uhQeAE1@thread.tacv2 Channel Name
id,displayName
19:B3nCnLKwwCoGDEADyUgQ5kJ5Pkekujyjmwxp7uhQeAE1@thread.tacv2,Channel Name