Microsoft Active Directory · Arazzo Workflow

Active Directory Provision User Into New Group

Version 1.0.0

Create a user, create a security group, and add the user as a member of that group.

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

Provider

active-directory

Workflows

provision-user-into-new-group
Provision a new user and a new group, then make the user a member of the group.
Creates a Microsoft Entra user, creates a security group, and references the newly created user from the new group's members collection so that the user immediately inherits the group's access.
3 steps inputs: displayName, groupDisplayName, groupMailNickname, mailNickname, password, userPrincipalName outputs: groupId, userId
1
createUser
Create the new, enabled Microsoft Entra user account with a password profile that forces a password change at first sign-in.
2
createGroup
Create a security group (mail-disabled, security-enabled) that will govern the new user's access.
3
addUserToGroup
Add the newly created user to the newly created group by passing an OData reference to the user object.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Active Directory Provision User Into New Group
  summary: Create a user, create a security group, and add the user as a member of that group.
  description: >-
    A foundational onboarding pattern for Microsoft Entra ID. The workflow
    creates a new user account, creates a fresh security group to govern that
    user's access, and then binds the two together by adding the new user as a
    member of the new group. Every step spells out its request inline so the
    flow can be read and executed without opening the underlying OpenAPI
    descriptions.
  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: provision-user-into-new-group
  summary: Provision a new user and a new group, then make the user a member of the group.
  description: >-
    Creates a Microsoft Entra user, creates a security group, and references
    the newly created user from the new group's members collection so that the
    user immediately inherits the group's access.
  inputs:
    type: object
    required:
    - displayName
    - mailNickname
    - userPrincipalName
    - password
    - groupDisplayName
    - groupMailNickname
    properties:
      displayName:
        type: string
        description: Display name for the new user (e.g. "Adele Vance").
      mailNickname:
        type: string
        description: Mail alias for the new user (without the domain suffix).
      userPrincipalName:
        type: string
        description: UPN for the new user in alias@domain format.
      password:
        type: string
        description: Initial password meeting tenant complexity requirements.
      groupDisplayName:
        type: string
        description: Display name for the new security group.
      groupMailNickname:
        type: string
        description: Mail alias for the new security group.
  steps:
  - stepId: createUser
    description: >-
      Create the new, enabled Microsoft Entra user account with a password
      profile that forces a password change at first sign-in.
    operationId: create-user
    requestBody:
      contentType: application/json
      payload:
        accountEnabled: true
        displayName: $inputs.displayName
        mailNickname: $inputs.mailNickname
        userPrincipalName: $inputs.userPrincipalName
        passwordProfile:
          password: $inputs.password
          forceChangePasswordNextSignIn: true
    successCriteria:
    - condition: $statusCode == 201
    outputs:
      userId: $response.body#/id
      userPrincipalName: $response.body#/userPrincipalName
  - stepId: createGroup
    description: >-
      Create a security group (mail-disabled, security-enabled) that will
      govern the new user's access.
    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: addUserToGroup
    description: >-
      Add the newly created user to the newly created group by passing an
      OData reference to the user object.
    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/$steps.createUser.outputs.userId
    successCriteria:
    - condition: $statusCode == 204
    outputs:
      addedUserId: $steps.createUser.outputs.userId
  outputs:
    userId: $steps.createUser.outputs.userId
    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-provision-user-into-new-group-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.