> 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/001_user/010_company_management/005__list_switchable_companies.md).

# List Switchable Companies

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

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

```

## Variables

```json
{}
```

## Response

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