Microsoft Azure API Management · Arazzo Workflow

Azure API Management Upsert User

Version 1.0.0

Find a user by identifier and update it if present, otherwise create it.

1 workflow 1 source API 1 provider
View Spec View on GitHub A2AAI GatewayAPI CenterAPI GatewayAPI ManagementEnterpriseMCPMicrosoft AzureArazzoWorkflows

Provider

microsoft-azure-api-management

Workflows

upsert-user
Upsert a developer user into an API Management service.
Lists users, checks for a matching identifier, and either updates the matched user or creates a new user.
3 steps inputs: email, firstName, lastName, resourceGroupName, serviceName, subscriptionId, userId outputs: updatedUserResourceId, userResourceId
1
listUsers
List existing users so the flow can detect whether the target user identifier already exists.
2
updateUser
Patch the existing user with updated name fields.
3
createUser
Create a new user with email and name when no matching user was found.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Azure API Management Upsert User
  summary: Find a user by identifier and update it if present, otherwise create it.
  description: >-
    Keeps a developer user record idempotent. The workflow lists the service's
    users, branches on whether the target user identifier already exists, and
    either patches the existing user or creates a new one with email and name.
    Every step spells out its request inline so the flow can be read and
    executed without opening the underlying OpenAPI description.
  version: 1.0.0
sourceDescriptions:
- name: userApi
  url: ../openapi/microsoft-azure-api-management-user-api-openapi.yml
  type: openapi
workflows:
- workflowId: upsert-user
  summary: Upsert a developer user into an API Management service.
  description: >-
    Lists users, checks for a matching identifier, and either updates the
    matched user or creates a new user.
  inputs:
    type: object
    required:
    - subscriptionId
    - resourceGroupName
    - serviceName
    - userId
    - email
    - firstName
    - lastName
    properties:
      subscriptionId:
        type: string
        description: The Azure subscription identifier.
      resourceGroupName:
        type: string
        description: The resource group containing the service.
      serviceName:
        type: string
        description: The API Management service name.
      userId:
        type: string
        description: The user identifier to upsert.
      email:
        type: string
        description: The user's email address.
      firstName:
        type: string
        description: The user's first name.
      lastName:
        type: string
        description: The user's last name.
  steps:
  - stepId: listUsers
    description: >-
      List existing users so the flow can detect whether the target user
      identifier already exists.
    operationId: User_ListByService
    parameters:
    - name: subscriptionId
      in: path
      value: $inputs.subscriptionId
    - name: resourceGroupName
      in: path
      value: $inputs.resourceGroupName
    - name: serviceName
      in: path
      value: $inputs.serviceName
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      userCount: $response.body#/count
    onSuccess:
    - name: userExists
      type: goto
      stepId: updateUser
      criteria:
      - context: $response.body
        condition: $.value[?(@.name == '$inputs.userId')]
        type: jsonpath
    - name: userMissing
      type: goto
      stepId: createUser
      criteria:
      - context: $response.body
        condition: $.count == 0
        type: jsonpath
  - stepId: updateUser
    description: >-
      Patch the existing user with updated name fields.
    operationId: User_Update
    parameters:
    - name: subscriptionId
      in: path
      value: $inputs.subscriptionId
    - name: resourceGroupName
      in: path
      value: $inputs.resourceGroupName
    - name: serviceName
      in: path
      value: $inputs.serviceName
    - name: userId
      in: path
      value: $inputs.userId
    requestBody:
      contentType: application/json
      payload:
        properties:
          firstName: $inputs.firstName
          lastName: $inputs.lastName
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      userResourceId: $response.body#/id
    onSuccess:
    - name: done
      type: end
  - stepId: createUser
    description: >-
      Create a new user with email and name when no matching user was found.
    operationId: User_CreateOrUpdate
    parameters:
    - name: subscriptionId
      in: path
      value: $inputs.subscriptionId
    - name: resourceGroupName
      in: path
      value: $inputs.resourceGroupName
    - name: serviceName
      in: path
      value: $inputs.serviceName
    - name: userId
      in: path
      value: $inputs.userId
    requestBody:
      contentType: application/json
      payload:
        properties:
          email: $inputs.email
          firstName: $inputs.firstName
          lastName: $inputs.lastName
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      userResourceId: $response.body#/id
  outputs:
    userResourceId: $steps.createUser.outputs.userResourceId
    updatedUserResourceId: $steps.updateUser.outputs.userResourceId

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-api-management-upsert-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.