Azure Web PubSub · Arazzo Workflow

Azure Web PubSub Grant Permission then Send to User

Version 1.0.0

Grant a connection a group permission, then deliver a message to that user.

1 workflow 2 source APIs 1 provider
View Spec View on GitHub MessagingPub-SubReal-TimeServerlessWebSocketsArazzoWorkflows

Provider

microsoft-azure-web-pubsub

Workflows

grant-permission-send-to-user
Grant a sendToGroup or joinLeaveGroup permission to a connection, then send a message to the user.
Grants a permission to a connection via grantPermission, then delivers a plain-text message to the user via sendToUser.
2 steps inputs: accessToken, apiVersion, connectionId, hub, message, permission, targetName, userId outputs: grantStatus, sendStatus
1
grantPermission
Grant the connection the requested permission, optionally scoped to a target group name.
2
sendToUser
Deliver the supplied plain-text message to every connection owned by the user.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Azure Web PubSub Grant Permission then Send to User
  summary: Grant a connection a group permission, then deliver a message to that user.
  description: >-
    An authorization-then-delivery pattern: an app server grants a connection the
    permission it needs (for example sendToGroup) against a target group, then
    sends a direct message to the user that owns the connection. Each step inlines
    its request — Authorization bearer header, required api-version query, the
    message body, and documented status codes — so the flow is self-describing.
  version: 1.0.0
sourceDescriptions:
- name: hubApi
  url: ../openapi/microsoft-azure-web-pubsub-hub-api-openapi.yml
  type: openapi
- name: permissionApi
  url: ../openapi/microsoft-azure-web-pubsub-permission-api-openapi.yml
  type: openapi
workflows:
- workflowId: grant-permission-send-to-user
  summary: Grant a sendToGroup or joinLeaveGroup permission to a connection, then send a message to the user.
  description: >-
    Grants a permission to a connection via grantPermission, then delivers a
    plain-text message to the user via sendToUser.
  inputs:
    type: object
    required:
    - accessToken
    - hub
    - permission
    - connectionId
    - userId
    - message
    properties:
      accessToken:
        type: string
        description: JWT bearer token for the Web PubSub data plane.
      apiVersion:
        type: string
        description: Data plane REST API version.
        default: "2024-01-01"
      hub:
        type: string
        description: Target hub name.
      permission:
        type: string
        description: Permission to grant.
        enum:
        - sendToGroup
        - joinLeaveGroup
      connectionId:
        type: string
        description: The connection id to grant the permission to.
      targetName:
        type: string
        description: Optional target group name the permission applies to.
      userId:
        type: string
        description: The user id to send the message to.
      message:
        type: string
        description: The plain-text message to deliver to the user.
  steps:
  - stepId: grantPermission
    description: >-
      Grant the connection the requested permission, optionally scoped to a
      target group name.
    operationId: webPubSub_grantPermission
    parameters:
    - name: Authorization
      in: header
      value: "Bearer $inputs.accessToken"
    - name: hub
      in: path
      value: $inputs.hub
    - name: permission
      in: path
      value: $inputs.permission
    - name: connectionId
      in: path
      value: $inputs.connectionId
    - name: api-version
      in: query
      value: $inputs.apiVersion
    - name: targetName
      in: query
      value: $inputs.targetName
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      grantStatus: $statusCode
  - stepId: sendToUser
    description: >-
      Deliver the supplied plain-text message to every connection owned by the
      user.
    operationId: webPubSub_sendToUser
    parameters:
    - name: Authorization
      in: header
      value: "Bearer $inputs.accessToken"
    - name: hub
      in: path
      value: $inputs.hub
    - name: userId
      in: path
      value: $inputs.userId
    - name: api-version
      in: query
      value: $inputs.apiVersion
    requestBody:
      contentType: text/plain
      payload: $inputs.message
    successCriteria:
    - condition: $statusCode == 202
    outputs:
      sendStatus: $statusCode
  outputs:
    grantStatus: $steps.grantPermission.outputs.grantStatus
    sendStatus: $steps.sendToUser.outputs.sendStatus

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/microsoft-azure-web-pubsub-grant-permission-and-send-to-user-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.