Microsoft Exchange · Arazzo Workflow

Microsoft Exchange Inspect and Delegate a Mailbox

Version 1.0.0

Read a mailbox's properties, then grant Send on Behalf delegation.

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

Provider

microsoft-exchange

Workflows

inspect-and-delegate-mailbox
Get a mailbox's properties and grant Send on Behalf delegation.
Executes Get-Mailbox to inspect the target mailbox, then Set-Mailbox to add a Send on Behalf delegate, routing both through the anchor mailbox.
2 steps inputs: anchorMailbox, delegateIdentity, mailboxIdentity outputs: mailbox, result
1
getMailbox
Run Get-Mailbox to read the target mailbox's properties before changing delegation.
2
setDelegation
Run Set-Mailbox to grant Send on Behalf delegation for the supplied delegate on the target mailbox.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Microsoft Exchange Inspect and Delegate a Mailbox
  summary: Read a mailbox's properties, then grant Send on Behalf delegation.
  description: >-
    An administrative delegation pattern on the Exchange Online Admin API. The
    workflow first runs Get-Mailbox to read a mailbox's properties, and then
    runs Set-Mailbox to grant Send on Behalf delegation to another user. Both
    cmdlet requests are routed with the X-AnchorMailbox header and use the same
    manageMailbox operation with different cmdlet inputs. Each step inlines its
    request so the flow can be executed without consulting the underlying
    OpenAPI description.
  version: 1.0.0
sourceDescriptions:
- name: mailboxesApi
  url: ../openapi/microsoft-exchange-mailboxes-api-openapi.yml
  type: openapi
workflows:
- workflowId: inspect-and-delegate-mailbox
  summary: Get a mailbox's properties and grant Send on Behalf delegation.
  description: >-
    Executes Get-Mailbox to inspect the target mailbox, then Set-Mailbox to add
    a Send on Behalf delegate, routing both through the anchor mailbox.
  inputs:
    type: object
    required:
    - anchorMailbox
    - mailboxIdentity
    - delegateIdentity
    properties:
      anchorMailbox:
        type: string
        description: >-
          The UPN or primary SMTP address used as the X-AnchorMailbox routing
          hint for the target tenant.
      mailboxIdentity:
        type: string
        description: The identity of the mailbox to inspect and update.
      delegateIdentity:
        type: string
        description: The identity of the user to grant Send on Behalf delegation to.
  steps:
  - stepId: getMailbox
    description: >-
      Run Get-Mailbox to read the target mailbox's properties before changing
      delegation.
    operationId: manageMailbox
    parameters:
    - name: X-AnchorMailbox
      in: header
      value: $inputs.anchorMailbox
    requestBody:
      contentType: application/json
      payload:
        CmdletInput:
          CmdletName: Get-Mailbox
          Parameters:
            Identity: $inputs.mailboxIdentity
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      mailbox: $response.body#/value/0
  - stepId: setDelegation
    description: >-
      Run Set-Mailbox to grant Send on Behalf delegation for the supplied
      delegate on the target mailbox.
    operationId: manageMailbox
    parameters:
    - name: X-AnchorMailbox
      in: header
      value: $inputs.anchorMailbox
    requestBody:
      contentType: application/json
      payload:
        CmdletInput:
          CmdletName: Set-Mailbox
          Parameters:
            Identity: $inputs.mailboxIdentity
            GrantSendOnBehalfTo: $inputs.delegateIdentity
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      result: $response.body#/value
  outputs:
    mailbox: $steps.getMailbox.outputs.mailbox
    result: $steps.setDelegation.outputs.result

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-exchange-inspect-and-delegate-mailbox-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.