---
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`

## Request

- Base URL: `https://recaptchaenterprise.googleapis.com`
- URL: `https://recaptchaenterprise.googleapis.com/v1/{+project}/relatedaccountgroupmemberships:search`
- Auth: OAuth 2 (implicit, authorization URL `https://accounts.google.com/o/oauth2/auth`, scopes: `https://www.googleapis.com/auth/cloud-platform`) and OAuth 2 (authorization code, authorization URL `https://accounts.google.com/o/oauth2/auth`, token URL `https://accounts.google.com/o/oauth2/token`, scopes: `https://www.googleapis.com/auth/cloud-platform`)

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

## Changes

- **2026-10-10** `b6a26222d14f`: 2 breaking
  - removed the request body
  - removed the media type `*/*` for the response with the status `200`

[Operation history](https://skmtc.dev/google/apis/recaptchaenterprise/changes/v1/:project/relatedaccountgroupmemberships:search/post.md)

---

[API](https://skmtc.dev/google/apis/recaptchaenterprise.md) · [All operations](https://skmtc.dev/google/apis/recaptchaenterprise/llms.txt) · [OpenAPI document](https://skmtc.dev/google/apis/recaptchaenterprise/revisions/b6a26222d14f?raw)
