TSGGLOBAL Support sign in
Skip to page content
Browse TNID API docs

TNID API documentation Company Users and search Global Search (Company)

Global Search (Company)

On this page

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

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

Variables

{
  "query": "Acme"
}

Response

{
  "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": ""
      }
    ]
  }
}