teams channel get¶
Gets information about the specific Microsoft Teams team channel
Usage¶
m365 teams channel get [options]
Options¶
-i, --teamId [teamId]
- The ID of the team to which the channel belongs to. Specify either teamId or teamName but not both
--teamName [teamName]
- The display name of the team to which the channel belongs to. Specify either teamId or teamName but not both
-c, --channelId [channelId]
- The ID of the channel for which to retrieve more information. Specify either channelId or channelName but not both
--channelName [channelName]
- The display name of the channel for which to retrieve more information. Specify either channelId or channelName but not both
--primary
- Gets the default channel, General, of a team. If specified, channelId or channelName are not needed
-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,csv
. Defaultjson
--verbose
- Runs command with verbose logging
--debug
- Runs command with debug logging
Examples¶
Get information about Microsoft Teams team channel with id 19:493665404ebd4a18adb8a980a31b4986@thread.skype
m365 teams channel get --teamId 00000000-0000-0000-0000-000000000000 --channelId '19:493665404ebd4a18adb8a980a31b4986@thread.skype'
Get information about Microsoft Teams team channel with name Channel Name
m365 teams channel get --teamName "Team Name" --channelName "Channel Name"
Get information about Microsoft Teams team primary channel , i.e. General
m365 teams channel get --teamName "Team Name" --primary