# 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"
      }
    ]
  }
}
```
