---
title: "Check if a connection has permission to the specified action."
method: HEAD
path: "/api/hubs/{hub}/permissions/{permission}/connections/{connectionId}"
tags: ["webpubsub"]
---

# Check if a connection has permission to the specified action.

`HEAD /api/hubs/{hub}/permissions/{permission}/connections/{connectionId}`

Check if a connection has permission to the specified action.

## Path parameters

- `hub` string, required
- `permission` 'sendToGroup' | 'joinLeaveGroup', required
- `connectionId` string, required

## Query parameters

- `api-version` string, required
- `targetName` string

## Response `200`

The request has succeeded.

## Other responses

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

---

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