> ## Documentation Index
> Fetch the complete documentation index at: https://docs.automate.ax/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Automate.ax automations are TypeScript programs.
> Use Bun for installation and command examples.
> Use Automate.ax for the product name and automate.ax for the package, CLI, and domain.
> Treat documented public APIs as current; do not invent transitional or deprecated names.

# Search Team Members

> Returns a paginated list of `TeamMember` objects for a business.

`square.searchTeamMembers` returns a paginated list of `TeamMember` objects for a business.

## Example

```ts automations/square-search-team-members.automation.ts theme={null}
import { automation, onDashboardRun } from "automate.ax"
import { square } from "automate.ax/square"

export default automation("Search Square Team Members", () => {
  onDashboardRun({ title: "Search Square Team Members" })

  square.searchTeamMembers({
    query: {
      filter: {
        locationIds: ["0G5P3VGACMMQZ"],
        status: "ACTIVE",
      },
    },
    limit: 10,
  })
})
```

## Inputs

Every input accepts a compatible signal. It requires `EMPLOYEES_READ`.

| Field    | Type                            | Required | Default | Description                                                                                                                                             |
| -------- | ------------------------------- | -------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `query`  | `Square.SearchTeamMembersQuery` | No       | —       | The query parameters.                                                                                                                                   |
| `limit`  | `number`                        | No       | —       | The maximum number of `TeamMember` objects in a page (100 by default).                                                                                  |
| `cursor` | `string`                        | No       | —       | The opaque cursor for fetching the next page. For more information, see [pagination](https://developer.squareup.com/docs/working-with-apis/pagination). |

Use the official [SearchTeamMembers reference](https://developer.squareup.com/reference/square/team-api/search-team-members) for provider field semantics and limits.

## Output

Returns the official `Square.SearchTeamMembersResponse` response as a codec-safe object. Square integer money amounts remain `bigint` values.
