Skip to content
MCP & Identity Actions

Disable or Enable AD Accounts from Copilot with Avatier MCP

Disable a person's AD accounts, or turn them back on, from Copilot Studio, Claude Code or Codex. Avatier verifies you, files an approval request with a reason and records it with a Request ID.

Published: By Jami Cox6 min read--:--
Risograph-style illustration of a large steel breaker panel bolted to a concrete wall, with ten heavy grey toggle levers in two rows. One lever in the lower row is printed emergency red and thrown down, with a dotted red line running to a small red ring, and the last lever is printed hazard amber and thrown back up. Conduit pipes and a hazard-stripe floor edge frame it.
TL;DR~40s read · skim-friendly summary

Disable a person's AD accounts, or turn them back on, from Copilot Studio, Claude Code or Codex. Avatier verifies you, files an approval request with a reason and records it with a Request ID.

  • Avatier's Disable Account Identity Action turns off a person's accounts on the systems you pick, with a reason and a justification on the record.
  • From Copilot Studio, Claude Code or OpenAI Codex you verify, name the person, give a reason, pick systems and confirm.
  • In Avabot and MCP, Disable Account is high-risk: by default it starts only if you verified in the last 5 minutes, and you can't disable your own account.
  • In Avabot chat and MCP every disable or enable is filed as an approval request that runs as soon as it is approved.
  • Enable Account turns the accounts back on, and each request leaves a Request ID in Request History and an activity-log entry.

Disabling an Active Directory account switches it off, and enabling it turns the same disabled account back on; in PowerShell those are Disable-ADAccount and Enable-ADAccount. With Avatier's Disable Account and Enable Account Identity Actions, you can ask for either change from Microsoft Copilot Studio, Claude Code or OpenAI Codex, and Avatier verifies you, files an approval request with your justification and records it with a Request ID.

Avatier's Disable Account page puts the action in one line: "Turn off a person's accounts on the systems you pick, now or on a date, with a reason and a justification on the record." For everything else you can ask through the Avatier MCP Server, see What Can You Ask Avatier MCP?.

What Disable-ADAccount does, and what it leaves out

Microsoft documents the command plainly: the Disable-ADAccount cmdlet "disables an Active Directory user, computer, or service account," and Enable-ADAccount "enables an Active Directory user, computer, or service account." You name the account with the Identity parameter, by distinguished name, GUID, security identifier or SAM account name, so a single line such as Disable-ADAccount -Identity PattiFul switches off one account.

What the command leaves out is the request and approval record. Avatier's page names the gap: "Disabling accounts by hand, one system at a time, makes it easy to miss one, and leaves no request or approval record behind." The Enable Account page makes the same point in reverse: "Who turned an account back on, why, and on which systems belongs on the record."

For the whole leaver program around a termination, from killing sessions to reassigning owned data, see Automated Deprovisioning: Closing Access When People Leave.

How to disable a person's accounts from Copilot Studio or Claude Code

First, connect your assistant to the server URL https://mcp.avatier.com/mcp and sign in with your Avatier account; the setup guide for Copilot Studio, Claude Code, Codex and Cursor has the client-by-client steps. Then ask. The page sums up the assistant flow: "In Avabot and MCP you verify, name the person, pick systems, give a reason and a justification, and confirm."

  1. Verify. Disable Account starts with identity verification in the conversation, "with the methods your policy already allows." It is high-risk, so by default it starts only if you verified in the last 5 minutes; otherwise you verify again.
  2. Name the person. Pick someone you are authorized to request for. You can't disable your own account.
  3. Give a reason and a justification. The reasons are Termination, Leave of Absence or Layoff, and chat also offers Orphan. The reason is recorded with the request.
  4. Pick the systems. Choose which of the person's systems to turn off. Systems marked "never disable" on their connector are not offered.
  5. Confirm. The disable is filed as an approval request.

Here is the page's own illustrative example, not a customer transcript: "Disable Chris Vance's accounts. Reason: Termination. Justification: last day was Friday." Avatier answers: "verify: passed · reason: Termination · systems: picked from list · request: submitted for approval."

Risograph-style infographic on grey concrete titled Five Steps to a Disable in bold red. Five square tiles joined by amber arrows show a red and grey shield, a person card, a document with a tag, a stack of account rows with two ticked, and a paper plane, labeled Verify First, Name the Person, Give a Reason, Pick Accounts and Confirm. A footer reads Filed as an approval request. From Copilot Studio, Claude Code or Codex: verify, name the person, give a reason, pick the systems and confirm the approval request.

Who approves the disable, and when it runs

Avatier's MCP pages state the rule as "Your Assistant Asks. Avatier Decides." For this action, "the approval workflow set up for each system decides who approves, with identity verification first in Avabot and MCP, where every disable is filed as an approval request." On submit, the request "is recorded in Request History with a Request ID and goes through the Lifecycle Management approval workflow for each selected system."

In chat, every disable runs as soon as it is approved. Scheduling and skipping workflow are web-app options: on the web you choose Disable Now or a date and time, and a workflow admin with Account Terminator rights who skips workflow disables the account at once, with no request, and sees a result for each system.

When the request runs, Active Directory can get more than a switched-off account. Connector settings can add clean-up steps, "such as moving the account to a set OU, removing group memberships or hiding the Exchange mailbox." The person asking gives the reason and the systems, and the connector settings decide the clean-up.

Risograph-style infographic titled Who Decides the Disable in bold red over grey concrete. Five amber circles on a thick red line show a speech bubble, a gate, a person with a check mark, a lever thrown down and a folder with a broom, labeled Assistant Asks, Workflow Routes, Approver Decides, Request Runs and AD Clean-Up. A footer reads The approval workflow decides. The assistant files the request; the approval workflow for each system decides, and connector settings add any Active Directory clean-up steps.

The main Avatier MCP page adds the guardrail behind that: Your Approval Workflows, "Requests follow the approval workflows your tenant already has." The assistant also Acts as the Signed-In User, with "OAuth sign-in to your own tenant. No shared service account, no API key to manage."

Turning accounts back on with Enable Account

Enable Account mirrors the disable: "Turn a disabled account back on, on the systems you pick, with a justification on the record." In chat you verify, name the person, pick systems from the list, give a justification and confirm the read-back. The person's systems are listed, all selected to start, and only the ones left selected are enabled. You can't enable your own account.

In Avabot chat and MCP, Enable Account "always files an approval request that runs as soon as it is approved." The enable completes "on each system whose connector supports enabling."

Enabling and unlocking are separate actions: "Enable turns a disabled account back on. An account locked by failed sign-ins is handled by Unlock Account." And a Leave of Absence disable has no built-in end: choosing that reason schedules no automatic re-enable, so you run Enable Account when the person returns.

For leave and rehire driven from HR data, where access is suspended during a leave and restored on return, see Leave of Absence and Rehire: Suspend and Restore Access with Avatier.

What Avatier ships, and the record it leaves

Disable AccountEnable Account
What it doesTurns off accounts on the systems you pickTurns a disabled account back on, on the systems you pick
On the recordA reason and a justificationA justification
Verification in chatHigh-risk: by default, verified in the last 5 minutesIdentity verification in the conversation
In Avabot chat and MCPAn approval request that runs once approvedAn approval request that runs once approved
Completes whenThe selected accounts are disabled; on AD, connector settings can add clean-up stepsThe selected accounts are enabled, on each system that supports enabling
Request History filterDisable AccountEnable Account

Both pages list the same core evidence: "A Request ID in Request History" with PDF or Excel export, and "An activity-log entry." Disable Account adds "Audit reports such as Lifecycle Management requests submitted and approved, and Account Terminator accounts disabled." Enable Account adds "The request in approvers' pending lists."

Risograph-style infographic titled The Record Each Request Leaves. A central card with a red Request ID header links by red and amber lines to four tiles: a funnel for Action Filter, a list for Log Record, a bar chart for Audit Reports and a download arrow for PDF or Excel. A footer reads One completed change, one Secure Outcome. Each disable or enable request leaves a Request ID in Request History, an activity-log entry and, for disables, a line in the audit reports.

Request History is part of the Avatier web app, where reviewers filter and export the requests your assistant filed. As general practice, write each justification for a reader who was not in the conversation. For security documentation, see the Avatier Trust Center.

Getting started

Avabot chat and MCP require the current (.NET 10) Avatier server.

Under Pay Per Identity Action™, "One completed account disable = one Secure Outcome; failed attempts are never billed," and the same holds for each completed enable. The program is in invitation-only preview, and pricing is shared with qualified organizations. Getting started is free, Deployment Services are included, and there is a 45-day money-back guarantee.

For the action itself, see the Disable Account page, and for setup steps, see the Avatier MCP Server page. For the platform and the preview, see the Avatier Identity Anywhere 2027™ site. For password and MFA controls, see Credential Governance™. For the company, see avatier.com.

Microsoft Copilot Studio, Claude Code, OpenAI Codex and the other assistants named here are trademarks of their respective owners. No partnership with or endorsement by any third party is implied.

ABOUT THE AUTHOR

Jami Cox
Jami Cox

Jami Cox is Avatier's Chief Customer Officer, focused on helping enterprises reduce identity risk, lower costs and scale with AI-driven IAM, and on making sure customers see measurable value from the technology they invest in.

Recognized on Gartner Peer Insights

4.4

Based on 14 verified reviews of AvatierIdentity Governance and Administration

Read the reviews on Gartner Peer Insights

Savings Calculator

Password Reset Cost Calculator

Enter your company size and see how much your help desk spends on password resets — and how much Avatier Credential Governance saves.

Horizon
Total Resets per Year
18,000
Annual Cost Without Automation
$500,000

Avatier Credential Governance reduces your cost by

$350,000

Over 1 year

See the full methodology and sources →