Microsoft Teams · Arazzo Workflow

Microsoft Teams Offboard Team Member

Version 1.0.0

Find a member by user id in a team and remove their membership.

1 workflow 1 source API 1 provider
View Spec View on GitHub ChatCollaborationCommunicationsMicrosoft-365ProductivityVideo ConferencingArazzoWorkflows

Provider

microsoft-teams

Workflows

offboard-team-member
List members and remove a membership, branching when the team is empty.
Lists the team's members so the caller can resolve the membership id, then removes the supplied membership. When the team has no members the flow ends.
2 steps inputs: accessToken, membershipId, teamId outputs: members
1
listMembers
List the team's members so the caller can confirm and resolve the membership to remove.
2
removeMember
Remove the supplied membership from the team.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Microsoft Teams Offboard Team Member
  summary: Find a member by user id in a team and remove their membership.
  description: >-
    Removing a member requires the membership id rather than the user id. This
    workflow lists the team's members, branches on whether any members exist, and
    removes the membership identified by the caller. 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: membersApi
  url: ../openapi/microsoft-teams-members-api-openapi.yml
  type: openapi
workflows:
- workflowId: offboard-team-member
  summary: List members and remove a membership, branching when the team is empty.
  description: >-
    Lists the team's members so the caller can resolve the membership id, then
    removes the supplied membership. When the team has no members the flow ends.
  inputs:
    type: object
    required:
    - accessToken
    - teamId
    - membershipId
    properties:
      accessToken:
        type: string
        description: OAuth 2.0 bearer token with TeamMember.ReadWrite.All scope.
      teamId:
        type: string
        description: The unique identifier of the team.
      membershipId:
        type: string
        description: The membership id of the member to remove.
  steps:
  - stepId: listMembers
    description: >-
      List the team's members so the caller can confirm and resolve the
      membership to remove.
    operationId: listTeamMembers
    parameters:
    - name: Authorization
      in: header
      value: "Bearer $inputs.accessToken"
    - name: team-id
      in: path
      value: $inputs.teamId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      members: $response.body#/value
    onSuccess:
    - name: membersExist
      type: goto
      stepId: removeMember
      criteria:
      - context: $response.body
        condition: $.value.length > 0
        type: jsonpath
    - name: noMembers
      type: end
      criteria:
      - context: $response.body
        condition: $.value.length == 0
        type: jsonpath
  - stepId: removeMember
    description: >-
      Remove the supplied membership from the team.
    operationId: removeTeamMember
    parameters:
    - name: Authorization
      in: header
      value: "Bearer $inputs.accessToken"
    - name: team-id
      in: path
      value: $inputs.teamId
    - name: membership-id
      in: path
      value: $inputs.membershipId
    successCriteria:
    - condition: $statusCode == 204
  outputs:
    members: $steps.listMembers.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-teams-offboard-team-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.