offboard-user

offboard-user is a command for coding agents from WYRE-AI/msp-claude-plugins. It costs 27 tokens per session (606 once invoked), scanned A, original, Apache-2.0.

A command that starts a complete Microsoft 365 offboarding workflow for a departing user. It supports planned, termination, and contractor departures, with options for mailbox handling and a dry run that shows proposed actions without applying them.

In plain words
What is it for?
Use it to resolve the user and tenant, capture audit information, lock the account, revoke access, manage the mailbox, reclaim licences, and produce an offboarding record.
Why use it?
It coordinates security and mailbox steps so access is removed while business data is handled according to the chosen departure type. A dry run helps review the planned changes first.

Command

Part of the cipp plugin — 7 skills, 4 commands, 2 agents shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/wyre-ai/msp-claude-plugins/offboard-user
Clone the repo
git clone --depth 1 https://github.com/WYRE-AI/msp-claude-plugins

Or install cipp, the plugin that ships this one along with the rest of its 7 skills, 4 commands, 2 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for offboard-user

README.md
[![agentmods](https://agentmods.dev/badge/commands/wyre-ai/msp-claude-plugins/offboard-user.svg)](https://agentmods.dev/commands/wyre-ai/msp-claude-plugins/offboard-user)
Your own site
<a href="https://agentmods.dev/commands/wyre-ai/msp-claude-plugins/offboard-user"><img src="https://agentmods.dev/badge/commands/wyre-ai/msp-claude-plugins/offboard-user.svg" alt="Measured on agentmods" height="20"></a>
Per session 27 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 606 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00027 $0.00606
Opus 5 $0.00014 $0.00303
Sonnet 5 $0.00005 $0.00121
Haiku 4.5 $0.00003 $0.00061

Measured today against content hash 9097da89d9d1, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

offboard-user scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

msp-claude-plugins/cipp/cipp/commands/offboard-user.md · 47 lines

How it starts

The opening of the file, as written. The whole thing — 47 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Offboard CIPP User

Delegate to the user-offboarding-runner agent. The agent handles the full sequence: tenant + user resolution, audit-state capture, account lock, mailbox handling, license reclaim, and structured offboarding record output.

Arguments

  • user (required) — UPN or display name of the user being offboarded
  • tenant (optional) — Tenant default domain or display name (skip if user is unique across all tenants)
  • posture (optional) — standard, termination, or contractor — controls action ordering and defaults (defaults to standard)
  • mailbox-action (optional) — shared, forward, archive, or hold — what to do with the mailbox (defaults to shared)
  • forward-to (optional) — UPN to forward mail to (defaults to user's manager if set in M365)
  • dry-run (optional) — Show every action that would be taken without executing (true/false)

Posture defaults

Posture Action ordering Mailbox default Confirmation depth
standard Audit first → disable Convert to shared One confirmation before destructive sequence
termination Disable + revoke + reset MFA first → audit second Convert to shared Single combined confirmation; speed-first
contractor Audit first → disable Archive (no shared conversion) One confirmation; no forwarding by default

What the workflow does

  1. Resolve tenant via cipp_list_tenants and user via cipp_list_users
  2. Confirm the match with the requester
  3. Capture audit state: cipp_list_user_groups, cipp_list_user_devices, cipp_list_mailbox_permissions
  4. Run cipp_offboard_user with options derived from posture and mailbox-action
  5. (If forwarding requested) verify cipp_set_email_forwarding was applied
  6. (If OOO requested) set cipp_set_out_of_office
  7. Produce a structured offboarding record for the ticket

Manual steps the agent will flag

CIPP doesn't handle these — the agent surfaces them in the final record:

Read the full file on GitHub · 47 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today First seen · 47 lines · 27 tokens per session scan A 9097da89d9d1

Subscribe to this mod's changes

offboard-user is a command published in the GitHub repository WYRE-AI/msp-claude-plugins (44 stars, last pushed 2d ago), licensed Apache-2.0. It adds 27 tokens to every session and 606 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-04.