Microsoft Active Directory · Arazzo Workflow

Active Directory Create Group And Add Two Members

Version 1.0.0

Create a security group, then add two existing users to it by their object IDs.

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

Provider

active-directory

Workflows

create-group-and-add-members
Create a group and add two existing users to it.
Creates a security group and then adds two users (referenced by their object IDs) to that group's members collection.
3 steps inputs: firstUserId, groupDisplayName, groupMailNickname, secondUserId outputs: groupId
1
createGroup
Create a security group (mail-disabled, security-enabled).
2
addFirstMember
Add the first user to the new group via an OData reference.
3
addSecondMember
Add the second user to the new group via an OData reference.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Active Directory Create Group And Add Two Members
  summary: Create a security group, then add two existing users to it by their object IDs.
  description: >-
    Stands up a new access group and populates it. The workflow creates a
    security group and then adds two existing users to it as members using
    OData references, returning the group id and the members it added. Each
    step inlines its request so the flow can be read and executed without 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-groups-api-openapi.yml
      confidence: 0.9
    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
workflows:
- workflowId: create-group-and-add-members
  summary: Create a group and add two existing users to it.
  description: >-
    Creates a security group and then adds two users (referenced by their
    object IDs) to that group's members collection.
  inputs:
    type: object
    required:
    - groupDisplayName
    - groupMailNickname
    - firstUserId
    - secondUserId
    properties:
      groupDisplayName:
        type: string
        description: Display name for the new security group.
      groupMailNickname:
        type: string
        description: Mail alias for the new security group.
      firstUserId:
        type: string
        description: Object ID of the first existing user to add.
      secondUserId:
        type: string
        description: Object ID of the second existing user to add.
  steps:
  - stepId: createGroup
    description: Create a security group (mail-disabled, security-enabled).
    operationId: create-group
    requestBody:
      contentType: application/json
      payload:
        displayName: $inputs.groupDisplayName
        mailEnabled: false
        mailNickname: $inputs.groupMailNickname
        securityEnabled: true
    successCriteria:
    - condition: $statusCode == 201
    outputs:
      groupId: $response.body#/id
  - stepId: addFirstMember
    description: Add the first user to the new group via an OData reference.
    operationId: add-group-member
    parameters:
    - name: groupId
      in: path
      value: $steps.createGroup.outputs.groupId
    requestBody:
      contentType: application/json
      payload:
        '@odata.id': https://graph.microsoft.com/v1.0/users/$inputs.firstUserId
    successCriteria:
    - condition: $statusCode == 204
    outputs:
      addedFirstUserId: $inputs.firstUserId
  - stepId: addSecondMember
    description: Add the second user to the new group via an OData reference.
    operationId: add-group-member
    parameters:
    - name: groupId
      in: path
      value: $steps.createGroup.outputs.groupId
    requestBody:
      contentType: application/json
      payload:
        '@odata.id': https://graph.microsoft.com/v1.0/users/$inputs.secondUserId
    successCriteria:
    - condition: $statusCode == 204
    outputs:
      addedSecondUserId: $inputs.secondUserId
  outputs:
    groupId: $steps.createGroup.outputs.groupId

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-create-group-and-add-members-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.