You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Retrieve a list of [conversationMember](../resources/conversation member.md) objects from a team[channel](../resources/channel.md). It supports all types of channels. In the case of shared channels, it includes all cross-tenant and cross-team members in a channel.
17
+
Get a list of all [members](../resources/conversationmember.md)in a[channel](../resources/channel.md). It supports all types of channels. In the case of shared channels, it includes all cross-tenant and cross-team members in a channel.
18
18
19
19
> [!NOTE]
20
-
> The membership IDs returned by the server must be treated as opaque strings. The client should not try to parse or make any assumptions about these resource IDs.
21
-
> In the future, membership results could be mapped to users from different tenants, as indicated in the response. The client should not assume that all members are from the current tenant.
22
-
> [!NOTE]
23
-
> Currently, pagination is not supported, a maximum of 999 members can be returned in the response. If there are more than 999 members in a channel, the API only fetches the first 999 members.
20
+
> The membership IDs returned by the server must be treated as opaque strings. Users shouldn't try to parse or make any assumptions about these resource IDs.
One of the following permissions is required to call this API. To learn more, including how to choose permissions, see [Permissions](/graph/permissions-reference).
26
+
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](/graph/permissions-overview#best-practices-for-using-microsoft-graph-permissions). For details about delegated and application permissions, see [Permission types](/graph/permissions-overview#permission-types). To learn more about these permissions, see the [permissions reference](/graph/permissions-reference).
> The `ChannelMember.Read.Group` and `ChannelMember.ReadWrite.Group` permissions use [resource-specific consent](/microsoftteams/platform/graph-api/rsc/resource-specific-consent). Currently, these permissions don't work for shared channels.
34
33
35
34
## HTTP request
36
35
37
36
<!-- { "blockType" : "ignored" } -->
37
+
```http
38
+
GET /teams/{team-id}/channels/{channel-id}/allMembers
39
+
```
38
40
39
41
### Optional query parameters
40
42
@@ -52,7 +54,7 @@ Don't supply a request body for this method.
52
54
53
55
## Response
54
56
55
-
If successful, this method returns a `200 OK` response code and a list of [conversationMember](../resources/conversationmember.md) objects in the response body.
57
+
If successful, this method returns a `200 OK` response code and a collection of [conversationMember](../resources/conversationmember.md) objects in the response body.
56
58
57
59
## Examples
58
60
@@ -108,40 +110,57 @@ The following example shows the response.
Copy file name to clipboardExpand all lines: api-reference/beta/resources/channel.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,7 @@ where files are shared, and where tabs are added.
37
37
|[Get files folder](../api/channel-get-filesfolder.md)|[driveItem](driveitem.md)| Retrieves the details of the SharePoint folder where the files for the channel are stored. |
38
38
|[List tabs](../api/channel-list-tabs.md)|[teamsTab](teamstab.md)| Lists tabs pinned to a channel.|
39
39
|[List channel members](../api/channel-list-members.md)|[conversationMember](conversationmember.md) collection | Get the list of members in a channel.|
40
-
|[List all members](../api/channel-list-allmembers.md)|[conversationMember](conversationmember.md) collection | Get a list of conversationMember objects from a team channel.|
40
+
|[List all members](../api/channel-list-allmembers.md)|[conversationMember](conversationmember.md) collection | Get a list of all [members](../resources/conversationmember.md) in a [channel](../resources/channel.md). |
41
41
|[Add channel member](../api/channel-post-members.md)|[conversationMember](conversationmember.md)| Add a member to a channel. Only supported for channels with a **membershipType** of `private` or `shared`.|
42
42
|[Get channel member](../api/channel-get-members.md)|[conversationMember](conversationmember.md) collection | Get a member in a channel.|
43
43
|[Archive channel](../api/channel-archive.md)| None | Archive a channel.|
@@ -106,7 +106,7 @@ For a POST request example, see [Request (create channel in migration state)](/m
106
106
|allMembers|[conversationMember](conversationmember.md) collection |A collection of membership records associated with the channel. It includes both direct and indirect members of shared channels.|
107
107
|[filesFolder](../api/channel-get-filesfolder.md)|[driveItem](driveitem.md)|Metadata for the location where the channel's files are stored.|
108
108
|members|[conversationMember](conversationmember.md) collection|A collection of membership records associated with the channel.|
109
-
|messages|[chatMessage](chatmessage.md) collection|A collection of all the messages in the channel. Nullable.|
109
+
|messages|[chatMessage](chatmessage.md) collection|A collection of all the messages in the channel. Nullable.|
110
110
|operations|[teamsAsyncOperation](teamsasyncoperation.md) collection| The async operations that ran or are running on this team. |
111
111
|planner|[teamsChannelPlanner](teamschannelplanner.md)| Selective Planner services available to this channel. Currently, only shared channels are supported. Read-only. Nullable. |
112
112
|sharedWithTeams|[sharedWithChannelTeamInfo](../resources/sharedwithchannelteaminfo.md) collection|A collection of teams with which a channel is shared.|
description: "Get a list of all members in a channel."
4
+
author: "sumanac"
5
+
ms.localizationpriority: high
6
+
ms.subservice: "teams"
7
+
doc_type: apiPageType
8
+
ms.date: 01/29/2025
9
+
---
10
+
11
+
# List allMembers
12
+
13
+
Namespace: microsoft.graph
14
+
15
+
Get a list of all [members](../resources/conversationmember.md) in a [channel](../resources/channel.md). It supports all types of channels. In the case of shared channels, it includes all cross-tenant and cross-team members in a channel.
16
+
17
+
> [!NOTE]
18
+
> The membership IDs returned by the server must be treated as opaque strings. Users shouldn't try to parse or make any assumptions about these resource IDs.
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](/graph/permissions-overview#best-practices-for-using-microsoft-graph-permissions). For details about delegated and application permissions, see [Permission types](/graph/permissions-overview#permission-types). To learn more about these permissions, see the [permissions reference](/graph/permissions-reference).
> The `ChannelMember.Read.Group` and `ChannelMember.ReadWrite.Group` permissions use [resource-specific consent](/microsoftteams/platform/graph-api/rsc/resource-specific-consent). Currently, these permissions don't work for shared channels.
31
+
32
+
## HTTP request
33
+
34
+
<!-- { "blockType" : "ignored" } -->
35
+
```http
36
+
GET /teams/{team-id}/channels/{channel-id}/allMembers
37
+
```
38
+
39
+
### Optional query parameters
40
+
41
+
This method supports the `$filter` and `$select`[OData query parameters](/graph/query-parameters) to help customize the response.
42
+
43
+
## Request headers
44
+
45
+
| Header | Value |
46
+
|:---------------|:--------|
47
+
|Authorization|Bearer {token}. Required. Learn more about [authentication and authorization](/graph/auth/auth-concepts).|
48
+
49
+
## Request body
50
+
51
+
Don't supply a request body for this method.
52
+
53
+
## Response
54
+
55
+
If successful, this method returns a `200 OK` response code and a collection of [conversationMember](../resources/conversationmember.md) objects in the response body.
GET https://graph.microsoft.com/v1.0/teams/2ab9c796-2902-45f8-b712-7c5a63cf41c4/channels/19%3A20bc1df46b1148e9b22539b83bc66809%40thread.skype/allMembers
70
+
```
71
+
72
+
### Response
73
+
74
+
The following example shows the response.
75
+
76
+
>**Note:** The response object shown here might be shortened for readability.
Copy file name to clipboardExpand all lines: api-reference/v1.0/resources/channel.md
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -35,6 +35,7 @@ where files are shared, and where tabs are added.
35
35
|[Get files folder](../api/channel-get-filesfolder.md)|[driveItem](driveitem.md)| Retrieves the details of the SharePoint folder where the files for the channel are stored. |
36
36
|[List tabs](../api/channel-list-tabs.md)|[teamsTab](teamstab.md)| Lists tabs pinned to a channel.|
37
37
|[List channel members](../api/channel-list-members.md)|[conversationMember](conversationmember.md) collection | Get the list of members in a channel.|
38
+
|[List all members](../api/channel-list-allmembers.md)|[conversationMember](conversationmember.md) collection | Get a list of all [members](../resources/conversationmember.md) in a [channel](../resources/channel.md). |
38
39
|[Add channel member](../api/channel-post-members.md)|[conversationMember](conversationmember.md)| Add a member to a channel. Only supported for channels with a **membershipType** of `private` or `shared`.|
39
40
|[Get channel member](../api/channel-get-members.md)|[conversationMember](conversationmember.md) collection | Get a member in a channel.|
40
41
|[Archive channel](../api/channel-archive.md)| None | Archive a channel in a team.|
@@ -98,6 +99,7 @@ For a POST request example, see [Request (create channel in migration state)](/m
98
99
99
100
| Relationship | Type |Description|
100
101
|:---------------|:--------|:----------|
102
+
|allMembers|[conversationMember](conversationmember.md) collection |A collection of membership records associated with the channel, including both direct and indirect members of shared channels.|
101
103
|[filesFolder](../api/channel-get-filesfolder.md)|[driveItem](driveitem.md)|Metadata for the location where the channel's files are stored.|
102
104
|members|[conversationMember](conversationmember.md) collection|A collection of membership records associated with the channel.|
103
105
|messages|[chatMessage](chatmessage.md) collection|A collection of all the messages in the channel. A navigation property. Nullable.|
0 commit comments