---
title: "Check if there are any client connections connected for the given user."
method: HEAD
path: "/api/hubs/{hub}/users/{userId}"
tags: ["webpubsub"]
---

# Check if there are any client connections connected for the given user.

`HEAD /api/hubs/{hub}/users/{userId}`

Check if there are any client connections connected for the given user.

## Path parameters

- `hub` string, required
- `userId` string, required

## Query parameters

- `api-version` string, required

## Response `200`

The request has succeeded.

## Other responses

- `404` — The server cannot find the requested resource.
- `default` — The error response.

## Changes

- **2026-07-13** (2021-05-01-preview) `3c12a9fc6305` — 1 info
  - api operation id `WebPubSub_UserExists` removed and replaced with `UserExists`
- **2026-07-13** (2021-05-01-preview) `db70e5df6e15` — 1 breaking
  - the `query` request parameter `api-version` became required
- **2021-04-21** (2021-05-01-preview) `5c057b21a138` — 1 warning, 2 info
  - the optional response header `x-ms-error-code` removed for the status `default`
  - api operation id `UserExists` removed and replaced with `WebPubSub_UserExists`
  - the `query` request parameter `api-version` became optional

[Change history](https://skmtc.dev/azure/apis/webpubsub/changes/api/hubs/:hub/users/:userId/head.md)

---

[API](https://skmtc.dev/azure/apis/webpubsub.md) · [All operations](https://skmtc.dev/azure/apis/webpubsub/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/azure/webpubsub/revisions/3c12a9fc6305/schema)
