> Markdown versions of all pages of this connector library are available by appending `.md` to the page URL. For the full index of connectors, see [llms.txt](https://connectors.appmixer.com/llms.txt).

# appmixer.posthog.core.FindPersons

- Component: `appmixer.posthog.core.FindPersons`
- Kind: Action
- Version: 1.0.0
- Visibility: Public
- Connector: [appmixer.posthog 1.1.0](https://connectors.appmixer.com/connector/appmixer.posthog/1.1.0.md)
- Component page: <https://connectors.appmixer.com/connector/appmixer.posthog/1.1.0/component/appmixer.posthog.core.FindPersons>

Search for persons in a PostHog project. Returns a maximum of 100 persons per call.

## Input ports

### Port `in`

| Field | Type | Description |
| --- | --- | --- |
| Project (`projectId`) | text | Pick a project, or type the numeric Project ID directly. |
| Search (`search`) | text | Search persons by name, distinct ID or email. |
| Distinct ID (`distinctId`) | text | Return only the person with exactly this distinct ID, e.g. the Distinct ID used in Identify User or Capture Event. |
| Output Type (`outputType`) | select | Choose whether you want to receive the result set as one complete list, or first item only or one item at a time or stream the items to a file. |

## Output ports

### Port `out`

Variables are loaded dynamically from `/component/appmixer/posthog/core/FindPersons?outPort=out&ignoreAuth=true`.

### Port `notFound`

_No fields defined for this port._

## Full metadata (component.json)

```json
{
  "name": "appmixer.posthog.core.FindPersons",
  "description": "Search for persons in a PostHog project. Returns a maximum of 100 persons per call.",
  "author": "Appmixer <info@appmixer.com>",
  "version": "1.0.0",
  "auth": {
    "service": "appmixer:posthog"
  },
  "quota": {
    "manager": "appmixer:posthog",
    "resources": "requests",
    "scope": {
      "userId": "{{userId}}"
    }
  },
  "inPorts": [
    {
      "name": "in",
      "schema": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string"
          },
          "search": {
            "type": "string"
          },
          "distinctId": {
            "type": "string"
          },
          "outputType": {
            "type": "string",
            "default": "array"
          }
        },
        "required": [
          "projectId"
        ]
      },
      "inspector": {
        "inputs": {
          "projectId": {
            "type": "text",
            "index": 1,
            "label": "Project",
            "tooltip": "Pick a project, or type the numeric Project ID directly.",
            "source": {
              "url": "/component/appmixer/posthog/core/ListProjects?outPort=out",
              "data": {
                "properties": {
                  "isSource": true
                },
                "transform": "./ListProjects#toSelectArray"
              }
            }
          },
          "search": {
            "type": "text",
            "index": 2,
            "label": "Search",
            "tooltip": "Search persons by name, distinct ID or email."
          },
          "distinctId": {
            "type": "text",
            "index": 3,
            "label": "Distinct ID",
            "tooltip": "Return only the person with exactly this distinct ID, e.g. the Distinct ID used in Identify User or Capture Event."
          },
          "outputType": {
            "type": "select",
            "label": "Output Type",
            "index": 4,
            "defaultValue": "array",
            "tooltip": "Choose whether you want to receive the result set as one complete list, or first item only or one item at a time or stream the items to a file.",
            "options": [
              {
                "label": "First Item Only",
                "value": "first"
              },
              {
                "label": "All items at once",
                "value": "array"
              },
              {
                "label": "One item at a time",
                "value": "object"
              },
              {
                "label": "Store to CSV file",
                "value": "file"
              }
            ]
          }
        }
      }
    }
  ],
  "outPorts": [
    {
      "name": "out",
      "source": {
        "url": "/component/appmixer/posthog/core/FindPersons?outPort=out&ignoreAuth=true",
        "data": {
          "properties": {
            "generateOutputPortOptions": true
          },
          "messages": {
            "in/projectId": "dummy",
            "in/outputType": "inputs/in/outputType"
          }
        }
      }
    },
    {
      "name": "notFound"
    }
  ],
  "icon": "(data URI omitted)"
}
```
