Microsoft Entra · Arazzo Workflow

Microsoft Entra Offboard User From Group

Version 1.0.0

Find a user by UPN, remove it from a group, and verify removal.

1 workflow 2 source APIs 1 provider
View Spec View on GitHub Access ManagementAuthenticationAzure ADEntraIdentityIdentity GovernanceMicrosoftNetwork SecuritySecurityZero TrustArazzoWorkflows

Provider

microsoft-entra

Workflows

offboard-user-from-group
Resolve a user by UPN, remove from a group, then list members.
Finds a user by userPrincipalName, removes the membership reference from the target group, and reads back the members collection.
3 steps inputs: accessToken, groupId, userPrincipalName outputs: members, userId
1
findUser
Filter the users collection on userPrincipalName to resolve the user's object id.
2
removeMember
Remove the user from the group by deleting the membership reference identified by the user's object id. Returns 204.
3
listMembers
List the group's remaining members to confirm the removal.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Microsoft Entra Offboard User From Group
  summary: Find a user by UPN, remove it from a group, and verify removal.
  description: >-
    Removes a user from a group in Microsoft Entra ID. The user is first
    located by filtering the users collection on userPrincipalName, then the
    matched object id is used to delete the membership reference from the
    group's members collection, and finally the group's members are listed to
    confirm the user is gone. Every request is inlined so the chain reads end to
    end.
  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: microsoft-entra-users-api-openapi.yml
      confidence: 0.85
    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/microsoft-entra-groups-api-openapi.yml
  type: openapi
- name: usersApi
  url: ../openapi/microsoft-entra-users-api-openapi.yml
  type: openapi
workflows:
- workflowId: offboard-user-from-group
  summary: Resolve a user by UPN, remove from a group, then list members.
  description: >-
    Finds a user by userPrincipalName, removes the membership reference from
    the target group, and reads back the members collection.
  inputs:
    type: object
    required:
    - accessToken
    - groupId
    - userPrincipalName
    properties:
      accessToken:
        type: string
        description: OAuth 2.0 bearer token with User.Read.All and GroupMember.ReadWrite.All.
      groupId:
        type: string
        description: Object id of the group to remove the user from.
      userPrincipalName:
        type: string
        description: UPN of the user to remove (e.g. user@contoso.com).
  steps:
  - stepId: findUser
    description: >-
      Filter the users collection on userPrincipalName to resolve the user's
      object id.
    operationId: listUsers
    parameters:
    - name: Authorization
      in: header
      value: "Bearer $inputs.accessToken"
    - name: $filter
      in: query
      value: "userPrincipalName eq '$inputs.userPrincipalName'"
    - name: $top
      in: query
      value: 1
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      matchedUserId: $response.body#/value/0/id
    onSuccess:
    - name: userFound
      type: goto
      stepId: removeMember
      criteria:
      - context: $response.body
        condition: $.value.length > 0
        type: jsonpath
  - stepId: removeMember
    description: >-
      Remove the user from the group by deleting the membership reference
      identified by the user's object id. Returns 204.
    operationId: removeGroupMember
    parameters:
    - name: Authorization
      in: header
      value: "Bearer $inputs.accessToken"
    - name: group-id
      in: path
      value: $inputs.groupId
    - name: directoryObject-id
      in: path
      value: $steps.findUser.outputs.matchedUserId
    successCriteria:
    - condition: $statusCode == 204
    outputs:
      removeStatus: $statusCode
  - stepId: listMembers
    description: List the group's remaining members to confirm the removal.
    operationId: listGroupMembers
    parameters:
    - name: Authorization
      in: header
      value: "Bearer $inputs.accessToken"
    - name: group-id
      in: path
      value: $inputs.groupId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      members: $response.body#/value
  outputs:
    userId: $steps.findUser.outputs.matchedUserId
    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-entra-offboard-user-from-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.