chat.spaces.members.list
Lists memberships in a Google Chat space, enabling you to retrieve and paginate space members, invited users, and group memberships.
Instructions
Lists memberships in a space. For an example, see List users and Google Chat apps in a space. Listing memberships with app authentication lists memberships in spaces that the Chat app has access to, but excludes Chat app memberships, including its own. Listing memberships with User authentication lists memberships in spaces that the authenticated user has access to. Supports [HTTP GET]. Returns the requested resource as JSON — request bodies are built from the typed parameters (typed flags win over the params map), or read whole from body_file Siblings over the same resource: create, delete, get, patch.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | Extra KEY=VALUE query pairs for endpoints whose parameters Discovery does not describe. | |
| filter | No | [query parameter] Optional. A query filter. You can filter memberships by a member's role ([`role`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.memb | |
| params | No | Parameter map merged into the request; typed parameters win. | |
| parent | Yes | [URL path segment] Required. The resource name of the space for which to fetch a membership list. Format: spaces/{space} | |
| dry_run | No | Return the request that would be sent, without sending it. | |
| pageSize | No | [query parameter] Optional. The maximum number of memberships to return. The service might return fewer than this value. If unspecified, at most 100 memberships are returned. The | |
| body_file | No | Read the request body from this file ('-' for stdin) instead of building one from the parameters. | |
| pageToken | No | [query parameter] Optional. A page token, received from a previous call to list memberships. Provide this parameter to retrieve the subsequent page. When paginating, all other pa | |
| showGroups | No | [query parameter] Optional. When `true`, also returns memberships associated with a Google Group, in addition to other types of memberships. If a filter is set, Google Group memb | |
| showInvited | No | [query parameter] Optional. When `true`, also returns memberships associated with invited members, in addition to other types of memberships. If a filter is set, invited membersh | |
| useAdminAccess | No | [query parameter] Optional. When `true`, the method runs using the user's Google Workspace administrator privileges. The calling user must be a Google Workspace administrator wit |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| memberships | No | ||
| nextPageToken | No |