# Method: projects.relatedaccountgroups.list

- [HTTP request](https://docs.cloud.google.com/recaptcha/docs/reference/rest/v1/projects.relatedaccountgroups/list#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/recaptcha/docs/reference/rest/v1/projects.relatedaccountgroups/list#body.PATH_PARAMETERS)
- [Query parameters](https://docs.cloud.google.com/recaptcha/docs/reference/rest/v1/projects.relatedaccountgroups/list#body.QUERY_PARAMETERS)
- [Request body](https://docs.cloud.google.com/recaptcha/docs/reference/rest/v1/projects.relatedaccountgroups/list#body.request_body)
- [Response body](https://docs.cloud.google.com/recaptcha/docs/reference/rest/v1/projects.relatedaccountgroups/list#body.response_body)
  - [JSON representation](https://docs.cloud.google.com/recaptcha/docs/reference/rest/v1/projects.relatedaccountgroups/list#body.ListRelatedAccountGroupsResponse.SCHEMA_REPRESENTATION)
- [Authorization scopes](https://docs.cloud.google.com/recaptcha/docs/reference/rest/v1/projects.relatedaccountgroups/list#body.aspect)
- [IAM Permissions](https://docs.cloud.google.com/recaptcha/docs/reference/rest/v1/projects.relatedaccountgroups/list#body.aspect_1)
- [RelatedAccountGroup](https://docs.cloud.google.com/recaptcha/docs/reference/rest/v1/projects.relatedaccountgroups/list#RelatedAccountGroup)
  - [JSON representation](https://docs.cloud.google.com/recaptcha/docs/reference/rest/v1/projects.relatedaccountgroups/list#RelatedAccountGroup.SCHEMA_REPRESENTATION)

List groups of related accounts.

### HTTP request

`GET https://recaptchaenterprise.googleapis.com/v1/{parent=projects/*}/relatedaccountgroups`

The URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.

### Path parameters

| Parameters ||
|---|---|
| `parent` | `string` Required. The name of the project to list related account groups from, in the format `projects/{project}`. |

### Query parameters

| Parameters ||
|---|---|
| `pageSize` | `integer` Optional. The maximum number of groups to return. The service might return fewer than this value. If unspecified, at most 50 groups are returned. The maximum value is 1000; values above 1000 are coerced to 1000. |
| `pageToken` | `string` Optional. A page token, received from a previous `relatedaccountgroups.list` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `relatedaccountgroups.list` must match the call that provided the page token. |

### Request body

The request body must be empty.

### Response body

The response to a `relatedaccountgroups.list` call.

If successful, the response body contains data with the following structure:

| JSON representation |
|---|
| ``` { "relatedAccountGroups": [ { object (`https://docs.cloud.google.com/recaptcha/docs/reference/rest/v1/projects.relatedaccountgroups/list#RelatedAccountGroup`) } ], "nextPageToken": string } ``` |

| Fields ||
|---|---|
| `relatedAccountGroups[]` | ``object (`https://docs.cloud.google.com/recaptcha/docs/reference/rest/v1/projects.relatedaccountgroups/list#RelatedAccountGroup`)`` The groups of related accounts listed by the query. |
| `nextPageToken` | `string` A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted, there are no subsequent pages. |

### Authorization scopes

Requires the following OAuth scope:

- `https://www.googleapis.com/auth/cloud-platform`

For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp).

### IAM Permissions

Requires the following [IAM](https://cloud.google.com/iam/docs) permission on the `parent` resource:

- `recaptchaenterprise.relatedaccountgroups.list`

For more information, see the [IAM documentation](https://cloud.google.com/iam/docs).

## RelatedAccountGroup

A group of related accounts.

| JSON representation |
|---|
| ``` { "name": string } ``` |

| Fields ||
|---|---|
| `name` | `string` Required. Identifier. The resource name for the related account group in the format `projects/{project}/relatedaccountgroups/{related_account_group}`. |