Skip to main content

teams tab get

Gets information about the specified Microsoft Teams tab

Usage

m365 teams tab get [options]

Options

--teamId [teamId]

The ID of the Microsoft Teams team where the tab is located. Specify either teamId or teamName but not both.

--teamName [teamName]

The display name of the Microsoft Teams team where the tab is located. Specify either teamId or teamName but not both.

--channelId [channelId]

The ID of the Microsoft Teams channel where the tab is located. Specify either channelId or channelName but not both.

--channelName [channelName]

The display name of the Microsoft Teams channel where the tab is located. Specify either channelId or channelName but not both.

-i, --id [id]

The ID of the Microsoft Teams tab. Specify either id or name but not both.

-n, --name [name]

The display name of the Microsoft Teams tab. Specify either id or name but not both.

-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 is options.

--query [query]

JMESPath query string. See http://jmespath.org/ for more information and examples.

-o, --output [output]

Output type. json, text, csv, md, none. Default json.

--verbose

Runs command with verbose logging.

--debug

Runs command with debug logging.

Remarks

You can only retrieve tabs for teams of which you are a member.

Examples

Get a Microsoft Teams Tab with the specified ID.

m365 teams tab get --teamId 00000000-0000-0000-0000-000000000000 --channelId 19:00000000000000000000000000000000@thread.skype --id 1432c9da-8b9c-4602-9248-e0800f3e3f07

Get a Microsoft Teams Tab with the specified name.

m365 teams tab get --teamName "Team Name" --channelName "Channel Name" --name "Tab Name"

Response

{
"id": "34991fbf-59f4-48d9-b094-b9d64d550e23",
"displayName": "SharePoint",
"webUrl": "https://teams.microsoft.com/l/entity/1542629c-01b3-4a6d-8f76-1938b779e48d/_djb2_msteams_prefix_34991fbf-59f4-48d9-b094-b9d64d550e23?webUrl=https%3a%2f%2fteams.contoso.ai%2fmsteams%2fcontent%2ftab%2fteam%3ftheme%3d%7btheme%7d&label=My%20Contoso%20Tab&context=%7b%0d%0a++%22canvasUrl%22%3a+%22https%3a%2f%2fteams.contoso.ai%2fmsteams%2fcontent%2ftab%2fteam%3ftheme%3d%7btheme%7d%22%2c%0d%0a++%22channelId%22%3a+%2219%3aB3nCnLKwwCoGDEADyUgQ5kJ5Pkekujyjmwxp7uhQeAE1%40thread.tacv2%22%2c%0d%0a++%22subEntityId%22%3a+null%0d%0a%7d&groupId=aee5a2c9-b1df-45ac-9964-c708e760a045&tenantId=92e59666-257b-49c3-b1fa-1bae8107f6ba",
"configuration": {
"entityId": "sharepointtab_0.9493973734805403",
"contentUrl": "https://contoso.sharepoint.com/sites/EmergencyResponse/_layouts/15/filebrowser.aspx?app=teamsfile&scenario=teamsPage&fileBrowser=%7B%22sdk%22%3A%221.0%22%2C%22entry%22%3A%7B%22sharePoint%22%3A%7B%22byPath%22%3A%7B%22folder%22%3A%22%2Fsites%2FEmergencyResponse%2FShared+Documents%22%7D%7D%2C%22view%22%3A%7B%22id%22%3A%223fed0165-c65f-4633-96d8-78aa513733ea%22%7D%7D%7D&theme={theme}",
"removeUrl": null,
"websiteUrl": "https://contoso.sharepoint.com/sites/EmergencyResponse/Shared Documents/Forms/AllItems.aspx",
"dateAdded": "2022-10-31T12:17:58.632Z"
},
"teamsApp": {
"id": "1542629c-01b3-4a6d-8f76-1938b779e48d",
"externalId": null,
"displayName": "SharePoint",
"distributionMethod": "store"
}
}
CTRL + M