> For the complete documentation index, see [llms.txt](https://docs.tnid.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tnid.com/api-reference/002_company/010_users_and_search/004__global_search_as_company.md).

# Global Search (Company)

GraphQL endpoint: `/company`

Searches across users, companies, and groups in a single mixed list. Matches against display name and, when the query looks like an email or phone number, contact fields. Queries shorter than 3 characters return an empty list.

## Query

```graphql
query ($query: String!, $limit: Int, $showSensitiveData: Boolean) {
  globalSearch(query: $query, limit: $limit, showSensitiveData: $showSensitiveData) {
    id
    type
    label
    username
  }
}

```

## Variables

```json
{
  "query": "Acme"
}
```

## Response

```json
{
  "data": {
    "globalSearch": [
      {
        "id": "00000000-0000-4000-8000-000000000001",
        "label": "Acmeperson Searchable",
        "type": "USER",
        "username": "username1"
      },
      {
        "id": "00000000-0000-4000-8000-000000000002",
        "label": "Acmecorp Industries",
        "type": "COMPANY",
        "username": ""
      },
      {
        "id": "00000000-0000-4000-8000-000000000003",
        "label": "Acmegroup Society",
        "type": "GROUP",
        "username": ""
      }
    ]
  }
}
```
