Microsoft Active Directory · Arazzo Workflow

Active Directory Find User And Update Profile

Version 1.0.0

Look up a user by principal name, then patch their job title and department.

1 workflow 1 source API 1 provider
View Spec View on GitHub Active DirectoryAuthenticationAuthorizationDirectory ServicesIdentity ManagementMicrosoft EntraZero TrustArazzoWorkflows

Provider

active-directory

Workflows

find-user-and-update-profile
Resolve a user by UPN and update their organizational profile fields.
Searches for a user by userPrincipalName, and if a match is found, patches that user's jobTitle and department. If no user matches, the workflow ends without making changes.
2 steps inputs: department, jobTitle, userPrincipalName outputs: updatedUserId
1
findUser
Filter the users collection on userPrincipalName, returning at most one matching user.
2
updateUser
Patch the matched user with the new job title and department. Only the supplied properties change; all others retain their current values.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Active Directory Find User And Update Profile
  summary: Look up a user by principal name, then patch their job title and department.
  description: >-
    A find-then-act pattern for keeping employee directory records current.
    The workflow filters the users collection by userPrincipalName, branches on
    whether a match was found, and when a user exists it patches the job title
    and department on that user. Each step inlines its request so the flow can
    be executed without consulting the underlying OpenAPI description.
  version: 1.0.0
  x-realizes-capability-ids:
  - BC-620.20
  x-capability-derivation:
    method: 'deterministic join: sourceDescriptions -> per-tag OpenAPI -> tag/capability edge. No classification at this step.'
    min_confidence: 0.7
    sources:
    - capability_id: BC-620.20
      capability_name: Identity & Access Management
      spec: active-directory-users-api-openapi.yml
      confidence: 0.88
    model: Turbo EA Capabilities by Vincent Verdet — Turbo EA, https://github.com/vincentmakes/turbo-ea-capabilities, CC BY 4.0
sourceDescriptions:
- name: usersApi
  url: ../openapi/active-directory-users-api-openapi.yml
  type: openapi
workflows:
- workflowId: find-user-and-update-profile
  summary: Resolve a user by UPN and update their organizational profile fields.
  description: >-
    Searches for a user by userPrincipalName, and if a match is found, patches
    that user's jobTitle and department. If no user matches, the workflow ends
    without making changes.
  inputs:
    type: object
    required:
    - userPrincipalName
    - jobTitle
    - department
    properties:
      userPrincipalName:
        type: string
        description: The userPrincipalName to search for (e.g. AdeleV@contoso.com).
      jobTitle:
        type: string
        description: The new job title to set on the matched user.
      department:
        type: string
        description: The new department to set on the matched user.
  steps:
  - stepId: findUser
    description: >-
      Filter the users collection on userPrincipalName, returning at most one
      matching user.
    operationId: list-users
    parameters:
    - name: $filter
      in: query
      value: "userPrincipalName eq '$inputs.userPrincipalName'"
    - name: $top
      in: query
      value: 1
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      matchedUserId: $response.body#/value/0/id
    onSuccess:
    - name: userFound
      type: goto
      stepId: updateUser
      criteria:
      - context: $response.body
        condition: $.value.length > 0
        type: jsonpath
    - name: userMissing
      type: end
      criteria:
      - context: $response.body
        condition: $.value.length == 0
        type: jsonpath
  - stepId: updateUser
    description: >-
      Patch the matched user with the new job title and department. Only the
      supplied properties change; all others retain their current values.
    operationId: update-user
    parameters:
    - name: userId
      in: path
      value: $steps.findUser.outputs.matchedUserId
    requestBody:
      contentType: application/json
      payload:
        jobTitle: $inputs.jobTitle
        department: $inputs.department
    successCriteria:
    - condition: $statusCode == 204
    outputs:
      updatedUserId: $steps.findUser.outputs.matchedUserId
  outputs:
    updatedUserId: $steps.updateUser.outputs.updatedUserId

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/active-directory-find-user-and-update-profile-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.