Microsoft Active Directory · Arazzo Workflow

Active Directory Create Microsoft 365 Group With Owner

Version 1.0.0

Create a user, create a Microsoft 365 group owned by that user, and add the user as a member.

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

Provider

active-directory

Workflows

create-m365-group-with-owner
Create an owner user and a Microsoft 365 group owned by that user.
Creates a user, creates a Unified Microsoft 365 group with that user bound as an owner via owners@odata.bind, and then adds the user as a member.
3 steps inputs: groupDisplayName, groupMailNickname, ownerDisplayName, ownerMailNickname, ownerPassword, ownerUserPrincipalName outputs: groupId, ownerId
1
createOwner
Create the user who will own the Microsoft 365 group.
2
createGroup
Create a Unified Microsoft 365 group binding the new user as an owner at creation time.
3
addOwnerAsMember
Add the owner user as a member of the group via an OData reference.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Active Directory Create Microsoft 365 Group With Owner
  summary: Create a user, create a Microsoft 365 group owned by that user, and add the user as a member.
  description: >-
    Stands up a collaborative Microsoft 365 group with a designated owner. The
    workflow creates a user to act as the group owner, creates a Unified
    (Microsoft 365) group binding that user as an owner at creation time, and
    then adds the same user as a member so they appear in the group's membership.
    Each step inlines its request so the flow runs without the OpenAPI source.
  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: create-m365-group-with-owner
  summary: Create an owner user and a Microsoft 365 group owned by that user.
  description: >-
    Creates a user, creates a Unified Microsoft 365 group with that user bound
    as an owner via owners@odata.bind, and then adds the user as a member.
  inputs:
    type: object
    required:
    - ownerDisplayName
    - ownerMailNickname
    - ownerUserPrincipalName
    - ownerPassword
    - groupDisplayName
    - groupMailNickname
    properties:
      ownerDisplayName:
        type: string
        description: Display name for the owner user.
      ownerMailNickname:
        type: string
        description: Mail alias for the owner user.
      ownerUserPrincipalName:
        type: string
        description: UPN for the owner user in alias@domain format.
      ownerPassword:
        type: string
        description: Initial password meeting tenant complexity requirements.
      groupDisplayName:
        type: string
        description: Display name for the new Microsoft 365 group.
      groupMailNickname:
        type: string
        description: Mail alias for the new Microsoft 365 group.
  steps:
  - stepId: createOwner
    description: Create the user who will own the Microsoft 365 group.
    operationId: create-user
    requestBody:
      contentType: application/json
      payload:
        accountEnabled: true
        displayName: $inputs.ownerDisplayName
        mailNickname: $inputs.ownerMailNickname
        userPrincipalName: $inputs.ownerUserPrincipalName
        passwordProfile:
          password: $inputs.ownerPassword
          forceChangePasswordNextSignIn: true
    successCriteria:
    - condition: $statusCode == 201
    outputs:
      ownerId: $response.body#/id
  - stepId: createGroup
    description: >-
      Create a Unified Microsoft 365 group binding the new user as an owner at
      creation time.
    operationId: create-group
    requestBody:
      contentType: application/json
      payload:
        displayName: $inputs.groupDisplayName
        mailEnabled: true
        mailNickname: $inputs.groupMailNickname
        securityEnabled: false
        groupTypes:
        - Unified
        'owners@odata.bind':
        - https://graph.microsoft.com/v1.0/users/$steps.createOwner.outputs.ownerId
    successCriteria:
    - condition: $statusCode == 201
    outputs:
      groupId: $response.body#/id
  - stepId: addOwnerAsMember
    description: Add the owner user as a member of the 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/$steps.createOwner.outputs.ownerId
    successCriteria:
    - condition: $statusCode == 204
    outputs:
      addedMemberId: $steps.createOwner.outputs.ownerId
  outputs:
    ownerId: $steps.createOwner.outputs.ownerId
    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-m365-group-with-owner-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.