Microsoft Active Directory · Arazzo Workflow

Active Directory Audit User Group Memberships

Version 1.0.0

Resolve a user by UPN, read their full profile, then list their group memberships and manager.

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

Provider

active-directory

Workflows

audit-user-group-memberships
Compile a user's profile, direct memberships, and manager for an access review.
Searches for a user by UPN, retrieves the user object, lists the directory objects the user is a direct member of, and reads the user's manager.
4 steps inputs: userPrincipalName outputs: managerId, memberships, userId
1
findUser
Resolve the user by userPrincipalName, returning at most one match.
2
getUser
Retrieve the full user object for the resolved id.
3
listMemberships
List the groups and directory roles the user is a direct member of, filtered to group objects.
4
getManager
Read the user's assigned manager.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Active Directory Audit User Group Memberships
  summary: Resolve a user by UPN, read their full profile, then list their group memberships and manager.
  description: >-
    An access review pattern for a single user. The workflow resolves a user by
    userPrincipalName, retrieves their full user object, lists the groups and
    directory roles they are a direct member of, and reads their assigned
    manager — producing a consolidated picture of one identity's access and
    reporting line. Each step inlines its request so the flow is self-describing.
  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: groupsApi
  url: ../openapi/active-directory-groups-api-openapi.yml
  type: openapi
- name: usersApi
  url: ../openapi/active-directory-users-api-openapi.yml
  type: openapi
workflows:
- workflowId: audit-user-group-memberships
  summary: Compile a user's profile, direct memberships, and manager for an access review.
  description: >-
    Searches for a user by UPN, retrieves the user object, lists the directory
    objects the user is a direct member of, and reads the user's manager.
  inputs:
    type: object
    required:
    - userPrincipalName
    properties:
      userPrincipalName:
        type: string
        description: UPN of the user to audit (e.g. AdeleV@contoso.com).
  steps:
  - stepId: findUser
    description: Resolve the user by userPrincipalName, returning at most one match.
    operationId: list-users
    parameters:
    - name: $filter
      in: query
      value: "userPrincipalName eq '$inputs.userPrincipalName'"
    - name: $top
      in: query
      value: 1
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      userId: $response.body#/value/0/id
  - stepId: getUser
    description: Retrieve the full user object for the resolved id.
    operationId: get-user
    parameters:
    - name: userId
      in: path
      value: $steps.findUser.outputs.userId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      displayName: $response.body#/displayName
      accountEnabled: $response.body#/accountEnabled
  - stepId: listMemberships
    description: >-
      List the groups and directory roles the user is a direct member of,
      filtered to group objects.
    operationId: list-user-member-of
    parameters:
    - name: userId
      in: path
      value: $steps.findUser.outputs.userId
    - name: $filter
      in: query
      value: "isof('microsoft.graph.group')"
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      memberships: $response.body#/value
  - stepId: getManager
    description: Read the user's assigned manager.
    operationId: get-user-manager
    parameters:
    - name: userId
      in: path
      value: $steps.findUser.outputs.userId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      managerId: $response.body#/id
      managerDisplayName: $response.body#/displayName
  outputs:
    userId: $steps.findUser.outputs.userId
    memberships: $steps.listMemberships.outputs.memberships
    managerId: $steps.getManager.outputs.managerId

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-audit-user-group-memberships-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.