---
title: "Search for groups using the extended fields"
method: POST
path: "/userGroup2/extendedFieldSearch"
---

# Search for groups using the extended fields

`POST /userGroup2/extendedFieldSearch`

Search for groups based on the extended fields associated with them.

## Request body

- object
  - `extendedFields` string[], required — An array containing the extended fields linked to the group for which details are being fetched.

## Response `200`

200

- object
  - `pagination` object
    - `limit` integer
    - `offset` integer
    - `total` integer
  - `data` object[]
    - `groupId` integer
    - `groupName` string
    - `groupStatus` string
    - `groupExternalId` string
    - `primaryMemberId` integer
    - `totalMembers` integer
    - `totalActiveMembers` integer
    - `extendedFields` object
      - `usergroup2_automation_extended_field` integer
  - `warnings` unknown[]
    - unknown
  - `errors` unknown[]
    - unknown

## Other responses

- `400` — 400

---

[API](https://skmtc.net/capillarytech/apis/sample-api.md) · [All operations](https://skmtc.net/capillarytech/apis/sample-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/capillarytech/sample-api/revisions/de241f2ed9b3/schema)
