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

# POST /v1/projects/{projectsId}/relatedaccountgroupmemberships:search

`POST /v1/projects/{projectsId}/relatedaccountgroupmemberships:search`

## Request

- Base URL: `https://recaptchaenterprise.googleapis.com`
- URL: `https://recaptchaenterprise.googleapis.com/v1/projects/{projectsId}/relatedaccountgroupmemberships:search`
- Auth: OAuth 2 and OAuth 2
  - Implicit: `https://accounts.google.com/o/oauth2/auth`
  - Scopes: `https://www.googleapis.com/auth/cloud-platform`
  - Authorization code: `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

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

- GoogleCloudRecaptchaenterpriseV1SearchRelatedAccountGroupMembershipsResponse: The response to a `SearchRelatedAccountGroupMemberships` call.
  - `nextPageToken` string: A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
  - `relatedAccountGroupMemberships` GoogleCloudRecaptchaenterpriseV1RelatedAccountGroupMembership[]: The queried memberships.
    - `accountId` string: The unique stable account identifier of the member. The identifier corresponds to an `account_id` provided in a previous `CreateAssessment` or `AnnotateAssessment` call.
    - `hashedAccountId` string, byte: Deprecated: use `account_id` instead. The unique stable hashed account identifier of the member. The identifier corresponds to a `hashed_account_id` provided in a previous `CreateAssessment` or `AnnotateAssessment` call.
    - `name` string: Required. Identifier. The resource name for this membership in the format `projects/{project}/relatedaccountgroups/{relatedaccountgroup}/memberships/{membership}`.

---

[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/26f34c638048?raw)
