Grant Permission if Missing
A 2-step recipe with Azure Web PubSub. We can help you get access.
Recipe · 2 steps
Grant Permission if Missing
with Azure Web PubSub
Check a connection's permission, then grant it only if not already held.
- Probe whether the connection already holds the permission. A 200 means it does; a 404 means it does not.
- Grant the connection the permission, optionally scoped to a target group name.
What you'll need to have ready
- accessToken: JWT bearer token for the Web PubSub data plane.
- apiVersion: Data plane REST API version.
- hub: Target hub name.
- permission: Permission to check and grant.
- connectionId: The connection id to check and grant.
- targetName: Optional target group name the permission applies to.
For your developer
Arazzo workflow microsoft-azure-web-pubsub:grant-permission-if-missing, 2 operations: webPubSub_checkPermission → webPubSub_grantPermission. Specs on APIs.io.