---
title: "POST /v1/{+project}/relatedaccountgroupmemberships:search"
method: POST
path: "/v1/{+project}/relatedaccountgroupmemberships:search"
tags: ["projects"]
---

# POST /v1/{+project}/relatedaccountgroupmemberships:search

`POST /v1/{+project}/relatedaccountgroupmemberships:search`

Search group memberships related to a given account.

## Path parameters

- `project` string, required

## Request body

- GoogleCloudRecaptchaenterpriseV1SearchRelatedAccountGroupMembershipsRequest — The request message to search related account group memberships.
  - `accountId` string — Optional. The unique stable account identifier used to search connections. The identifier should correspond to an `account_id` provided in a previous `CreateAssessment` or `AnnotateAssessment` call. Either hashed_account_id or account_id must be set, but not both.
  - `hashedAccountId` string, byte — Optional. Deprecated: use `account_id` instead. The unique stable hashed account identifier used to search connections. The identifier should correspond to a `hashed_account_id` provided in a previous `CreateAssessment` or `AnnotateAssessment` call. Either hashed_account_id or account_id must be set, but not both.
  - `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 `SearchRelatedAccountGroupMemberships` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `SearchRelatedAccountGroupMemberships` must match the call that provided the page token.

## Response `200`

Successful response

---

[API](https://skmtc.net/google/apis/recaptchaenterprise.md) · [All operations](https://skmtc.net/google/apis/recaptchaenterprise/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/google/recaptchaenterprise/revisions/3b5248d3ca31/schema)
