capabilities.work

Grant Permission then Send to User

A 2-step recipe with Azure Web PubSub. We can help you get access.

Recipe · 2 steps

Grant Permission then Send to User

Grant a sendToGroup or joinLeaveGroup permission to a connection, then send a message to the user.

  1. Grant the connection the requested permission, optionally scoped to a target group name.
  2. Deliver the supplied plain-text message to every connection owned by the user.
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 grant.
  • connectionId: The connection id to grant the permission to.
  • targetName: Optional target group name the permission applies to.
  • userId: The user id to send the message to.
  • message: The plain-text message to deliver to the user.
For your developer

Arazzo workflow microsoft-azure-web-pubsub:grant-permission-send-to-user, 2 operations: webPubSub_grantPermission → webPubSub_sendToUser. Specs on APIs.io.