Microsoft Office 365 · Arazzo Workflow

Microsoft Office 365 Rotate Group Member

Version 1.0.0

Remove one member from a group, add another, then list members to confirm.

1 workflow 1 source API 1 provider
View Spec View on GitHub CloudCollaborationEnterpriseMicrosoftProductivityArazzoWorkflows

Provider

microsoft-office-365

Workflows

rotate-group-member
Replace a group member with a different user.
Removes a member via DELETE /groups/{group-id}/members/{directoryObject-id}/$ref (204), adds a replacement via POST /groups/{group-id}/members/$ref (204), then lists members (200) to confirm.
3 steps inputs: groupId, incomingMemberId, outgoingMemberId outputs: addedMemberId, groupId, members, removedMemberId
1
removeMember
Remove the outgoing member from the group's members collection.
2
addMember
Add the incoming user as a replacement member by binding their directory object URL.
3
confirmMembers
List the group's members to confirm the rotation completed.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Microsoft Office 365 Rotate Group Member
  summary: Remove one member from a group, add another, then list members to confirm.
  description: >-
    Swaps one user out of a group for another in a single coordinated flow. The
    workflow removes an existing member from the group's members collection, adds
    a replacement user by binding the replacement's directory object reference,
    and then lists the group members to confirm the rotation. Every step spells
    out its request inline so the flow can be read and executed without opening
    the underlying OpenAPI description.
  version: 1.0.0
sourceDescriptions:
- name: groupsApi
  url: ../openapi/microsoft-office-365-groups-api-openapi.yml
  type: openapi
workflows:
- workflowId: rotate-group-member
  summary: Replace a group member with a different user.
  description: >-
    Removes a member via DELETE /groups/{group-id}/members/{directoryObject-id}/$ref
    (204), adds a replacement via POST /groups/{group-id}/members/$ref (204),
    then lists members (200) to confirm.
  inputs:
    type: object
    required:
    - groupId
    - outgoingMemberId
    - incomingMemberId
    properties:
      groupId:
        type: string
        description: The id of the group whose membership is being rotated.
      outgoingMemberId:
        type: string
        description: The directory object id of the member to remove.
      incomingMemberId:
        type: string
        description: The directory object id of the user to add as the replacement.
  steps:
  - stepId: removeMember
    description: Remove the outgoing member from the group's members collection.
    operationId: removeGroupMember
    parameters:
    - name: group-id
      in: path
      value: $inputs.groupId
    - name: directoryObject-id
      in: path
      value: $inputs.outgoingMemberId
    successCriteria:
    - condition: $statusCode == 204
    outputs:
      removedMemberId: $inputs.outgoingMemberId
  - stepId: addMember
    description: >-
      Add the incoming user as a replacement member by binding their directory
      object URL.
    operationId: addGroupMember
    parameters:
    - name: group-id
      in: path
      value: $inputs.groupId
    requestBody:
      contentType: application/json
      payload:
        '@odata.id': https://graph.microsoft.com/v1.0/directoryObjects/$inputs.incomingMemberId
    successCriteria:
    - condition: $statusCode == 204
    outputs:
      addedMemberId: $inputs.incomingMemberId
  - stepId: confirmMembers
    description: List the group's members to confirm the rotation completed.
    operationId: listGroupMembers
    parameters:
    - name: group-id
      in: path
      value: $inputs.groupId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      members: $response.body#/value
  outputs:
    groupId: $inputs.groupId
    removedMemberId: $steps.removeMember.outputs.removedMemberId
    addedMemberId: $steps.addMember.outputs.addedMemberId
    members: $steps.confirmMembers.outputs.members

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/microsoft-office-365-rotate-group-member-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.