title | description | author | doc_type | ms.localizationpriority | ms.subservice |
---|---|---|---|---|---|
List sharedWithChannelTeamInfo |
Get the list of teams that has been shared a specified channel. |
devjha-ms |
apiPageType |
high |
teams |
Namespace: microsoft.graph
Get the list of teams that has been shared a specified channel. This operation is allowed only for channels with a membershipType value of shared
.
[!INCLUDE national-cloud-support]
Choose the permission or permissions marked as least privileged for this API. Use a higher privileged permission or permissions only if your app requires it. For details about delegated and application permissions, see Permission types. To learn more about these permissions, see the permissions reference.
[!INCLUDE permissions-table]
Note: This API supports admin permissions. Global admins and Microsoft Teams service admins can access teams that they are not a member of.
GET /teams/{team-id}/channels/{channel-id}/sharedWithTeams
This method supports the $filter
and $select
OData query parameters to help customize the response.
Name | Description |
---|---|
Authorization | Bearer {token}. Required. Learn more about authentication and authorization. |
Don't supply a request body for this method.
If successful, this method returns a 200 OK
response code and a collection of sharedWithChannelTeamInfo objects in the response body.
The following example shows a request.
GET https://graph.microsoft.com/v1.0/teams/893075dd-2487-4122-925f-022c42e20265/channels/19:561fbdbbfca848a484f0a6f00ce9dbbd@thread.tacv2/sharedWithTeams
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
The following example shows the response.
HTTP/1.1 200 OK
Content-Type: application/json
{
"value": [
{
"@odata.type": "#microsoft.graph.sharedWithChannelTeamInfo",
"id": "2173de69-de69-2173-69de-732169de7321",
"tenantId": "b3246f44-b4gb-4627-96c6-25b18fa2c910",
"displayName": "Team Contoso",
"isHostTeam": true
},
{
"@odata.type": "#microsoft.graph.sharedWithChannelTeamInfo",
"id": "893075dd-2487-4122-86db-022c42e20265",
"displayName": "Team Fabrikam",
"isHostTeam": false,
"tenantId": "b3246f44-b4gb-5678-96c6-25b18fa2c910"
}
]
}