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

TNID API documentation User Company management List Switchable Companies

List Switchable Companies

On this page

GraphQL endpoint: /user

Lists the companies the current user can switch to, i.e. those where they hold an owner, admin, or external admin connection. Results can be filtered by legal name via the search argument.

Query

query($limit: Int, $search: String) {
  switchableCompanies(limit: $limit, search: $search) {
    id
  }
}

Variables

{}

Response

{
  "data": {
    "switchableCompanies": [
      {
        "id": "00000000-0000-4000-8000-000000000001"
      },
      {
        "id": "00000000-0000-4000-8000-000000000002"
      },
      {
        "id": "00000000-0000-4000-8000-000000000003"
      }
    ]
  }
}