Skip to content

Latest commit

 

History

History
122 lines (90 loc) · 4.15 KB

File metadata and controls

122 lines (90 loc) · 4.15 KB

import Global from '../../_global.mdx'; import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem';

teams channel get

Gets information about the specific Microsoft Teams team channel

Usage

m365 teams channel get [options]

Options

`--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.

`-i, --id [id]`
: The ID of the channel for which to retrieve more information. Specify either `id` or `name` but not both.

`--name [name]`
: The display name of the channel for which to retrieve more information. Specify either `id` or `name` but not both.

`--primary`
: Gets the default channel, General, of a team. If specified, id or name are not needed.

Examples

Get information about Microsoft Teams team channel with id 19:[email protected]

m365 teams channel get --teamId 00000000-0000-0000-0000-000000000000 --id '19:[email protected]'

Get information about Microsoft Teams team channel with name Channel Name

m365 teams channel get --teamName "Team Name" --name "Channel Name"

Get information about Microsoft Teams team primary channel , i.e. General

m365 teams channel get --teamName "Team Name" --primary

Response

{
  "id": "19:[email protected]",
  "createdDateTime": "2022-10-26T15:43:31.954Z",
  "displayName": "Channel Name",
  "description": "This team is about Contoso",
  "isFavoriteByDefault": null,
  "email": "[email protected]",
  "tenantId": "446355e4-e7e3-43d5-82f8-d7ad8272d55b",
  "webUrl": "https://teams.microsoft.com/l/channel/19%3A493665404ebd4a18adb8a980a31b4986%40thread.tacv2/ChannelName?groupId=aee5a2c9-b1df-45ac-9964-c708e760a045&tenantId=446355e4-e7e3-43d5-82f8-d7ad8272d55b&allowXTenantAccess=False",
  "membershipType": "standard"
}
createdDateTime    : 2022-10-26T15:43:31.954Z
description        : This team is about the Contoso
displayName        : Channel Name
email              : [email protected]
id                 : 19:[email protected]
isFavoriteByDefault: null
membershipType     : standard
tenantId           : 446355e4-e7e3-43d5-82f8-d7ad8272d55b
webUrl             : https://teams.microsoft.com/l/channel/19%3A493665404ebd4a18adb8a980a31b4986%40thread.tacv2/ChannelName?groupId=aee5a2c9-b1df-45ac-9964-c708e760a045&tenantId=446355e4-e7e3-43d5-82f8-d7ad8272d55b&allowXTenantAccess=False
id,createdDateTime,displayName,description,isFavoriteByDefault,email,tenantId,webUrl,membershipType
19:[email protected],2022-10-26T15:43:31.954Z,Channel Name,This team is about Contoso,,[email protected],446355e4-e7e3-43d5-82f8-d7ad8272d55b,https://teams.microsoft.com/l/channel/19%3A493665404ebd4a18adb8a980a31b4986%40thread.tacv2/ChannelName?groupId=aee5a2c9-b1df-45ac-9964-c708e760a045&tenantId=446355e4-e7e3-43d5-82f8-d7ad8272d55b&allowXTenantAccess=False,standard
# teams channel get --teamName TeamName --id "19:[email protected]2"

Date: 5/6/2023

## Channel Name (19:[email protected]2)

Property | Value
---------|-------
id | 19:[email protected]2
createdDateTime | 2022-10-26T15:43:31.954Z
displayName | Channel Name
description | This team is about Contoso
email | [email protected]
tenantId | 446355e4-e7e3-43d5-82f8-d7ad8272d55b
webUrl | https://teams.microsoft.com/l/channel/19%3A493665404ebd4a18adb8a980a31b4986%40thread.tacv2/ChannelName?groupId=aee5a2c9-b1df-45ac-9964-c708e760a045&tenantId=446355e4-e7e3-43d5-82f8-d7ad8272d55b&allowXTenantAccess=False
membershipType | standard