> For the complete documentation index, see [llms.txt](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/features/insights/remediation-actions/remediation-disable-accounts.md).

# Disable Accounts

Disable user and service accounts directly from query results using the Disable Accounts direct remediation action.

The **Disable Accounts** action disables user and service accounts in the source identity provider directly from a query result. Use this when a query surfaces risky user accounts, such as dormant accounts or accounts associated with departed employees, and you want to act immediately without leaving Veza.

{% hint style="warning" %}
**This is a bulk, immediate action. Read this before proceeding.**

* Service accounts, admin accounts, and break-glass accounts are not filtered out. Review query results for privileged identities before executing.
* There is no approval step after initiating remediation. Any admin with access to this feature can execute it immediately.
* The action affects every selected account. A misconfigured query can result in unintended accounts being disabled.
* Veza does not provide an undo action. To re-enable a disabled account, you must do so manually in the identity provider.
* Query results reflect data from the last extraction. If extraction is stale, the results may not match the current state of your environment.
  {% endhint %}

{% hint style="info" %}
**Early Access**: This feature is not enabled by default. Contact Veza support to enable it for your organization.

Behavior and configuration options may change before general availability. Before using this feature at scale, test it against a small, controlled query that returns a known set of accounts.
{% endhint %}

## Enabling write access

Veza integrations use read-only service account credentials by default. Before you can use Disable Accounts, you must grant the Veza service account write permissions and enable the integration for write actions. This is a one-time setup per integration.

1. Follow the guide for your integration to add the required write permissions to the Veza service account:
   * [Okta: Enabling provisioning](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/integrations/integrations/okta/provisioning.md)
   * [Azure AD: Enabling provisioning](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/integrations/integrations/azure/provisioning.md)
   * [Active Directory: Enabling provisioning](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/integrations/integrations/active-directory/provisioning.md)
2. In Veza, go to **Integrations**, open the integration configuration, and check the **Enable usage for Provisioning** checkbox.

   ![The Edit Integration panel showing the Enable usage for Provisioning checkbox](https://1967633068-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MZDkWMxox3pekd0NsZJ%2Fuploads%2Fgit-blob-4602ab239918fa66cf85a42dfffdab3dfae0310d%2Fenable-provisioning.png?alt=media)
3. Click **Save Configuration**.
4. To verify: reopen the integration configuration and confirm the **Enable usage for Provisioning** checkbox is checked.

## Before you begin

Before enabling or using this action on a production query, complete the following steps:

1. Run the query and review every account in the results. Confirm all returned accounts are safe to disable.
2. Check when the integration last ran a successful extraction. Stale extraction data means stale query results.
3. Identify whether the query could surface service accounts, shared accounts, or privileged identities. This action applies no exclusions of its own, so add filters to the query to exclude them.
4. Confirm your team has a process to re-enable accounts in the identity provider if any accounts need to be restored.

## Prerequisites

* Write access must be configured for the target integration. See [Enabling write access](#enabling-write-access) above.
* An administrator must enable the action on each query. Until then, **Disable Accounts** is unavailable in the **Remediate** dropdown.
* The query's source entity type must be one of: **Azure AD User**, **Active Directory User**, **Active Directory Managed Service Account**, or **Okta User**.

### Role requirements

Different controls in this feature are available to different roles:

| Action                              | Minimum role |
| ----------------------------------- | ------------ |
| View the Remediate dropdown         | Viewer       |
| Execute the Disable Accounts action | Admin        |
| View the Remediation Log            | Viewer       |
| Enable the action on a query        | Admin        |

Viewers can see the Remediate dropdown but cannot execute actions. The Disable Accounts action is only available to Admins.

**Disable Accounts** is unavailable in the dropdown until an Admin enables it on the query. It is also unavailable to all users if provisioning is not enabled for the integration.

## Enabling the action on a query

**Disable Accounts** is unavailable in the **Remediate** dropdown until an administrator enables it for the query. On the query details page, open the **More options** (⋮) menu and select **Enable Option to Disable Accounts**.

![The More options menu on a query details page, showing the Enable Option to Disable Accounts toggle](https://1967633068-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MZDkWMxox3pekd0NsZJ%2Fuploads%2Fgit-blob-3a670496bc9a6da3b2b0b8dae0be836922bf6dcd%2Fdisable-accounts-enable-on-query.png?alt=media)

This setting is per-query. Each query that should support Disable Accounts must be configured separately. Once enabled, the option appears under the **Automatic** group for all users with the Admin role.

## How to access

On the query details page, click the **Remediate** dropdown and select **Disable Accounts** under the **Automatic** group.

![The Remediate dropdown on a query details page, showing Disable Accounts under the Automatic group](https://1967633068-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MZDkWMxox3pekd0NsZJ%2Fuploads%2Fgit-blob-b5fe441304594e21a726256e94cba0591eba4558%2Fdisable-accounts-remediate-dropdown.png?alt=media)

The option is unavailable if the query has not been configured for this action or if Provisioning is not enabled for the integration.

## Workflow

Selecting **Disable Accounts** opens a full-screen page with three sections:

1. **Safety Conditions**: This section displays checks that must pass before execution. The action is blocked if any condition fails. Additional safety conditions may be added in future releases.
2. **Preview**: This section lists the accounts from the query results that are eligible for disablement. Use the **Name** filter above the table to narrow the list by account name. Use the checkboxes to select individual accounts to disable.
3. **Summary**: Use this section to add notes (required) documenting the reason for the action.

![The Preview Action page showing an impact summary and the Accounts to be Processed table, with checkboxes to select which accounts to disable](https://1967633068-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MZDkWMxox3pekd0NsZJ%2Fuploads%2Fgit-blob-4609f303fc5866bda96e5377dc24fb8d5e6c310f%2Fdisable-accounts-workflow.png?alt=media)

### Filtering the preview by name

The **Name** filter above the preview table narrows the list to accounts with a matching name.

* Enter text in the filter search box to run a case-insensitive substring match against account names. Select one or more names to apply the filter.
* The preview table and count of total accounts reflect the current selection; the impact summary will always match the request to be submitted.
* Clear the filter to restore the full list of eligible accounts.

Click **Execute** to submit the request. Veza disables the selected accounts and creates an auditable access request record. After execution, you are redirected to the **Remediation Log** tab, where you can monitor the status of the request.

{% hint style="info" %}
The Disable Accounts action performs a simple account disable only. Advanced deprovisioning options such as removing group memberships, moving the account to a different OU, or syncing attributes are not configurable in this flow. For full deprovisioning control, use a [Lifecycle Management workflow](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/features/lifecycle-management.md) instead.
{% endhint %}

## Remediation Log

Each Disable Accounts request is logged per account in the assessment's [Remediation Log](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/features/insights/remediation-log.md) tab, alongside every other remediation triggered from the query. Bulk submissions produce one row per affected account.

A row stays as audit evidence even after the account is later modified or re-enabled. See the [Remediation Log](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/features/insights/remediation-log.md) page for column reference, the status-and-state model, the History tab, and audit guidance.

## Supported integrations

The following integrations support disabling accounts. Write access must be configured for the Veza service account as described in [Enabling write access](#enabling-write-access):

* Okta
* Active Directory
* Azure AD

## See also

* [Remediation actions](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/features/insights/remediation-actions.md)
* [Disable NHI accounts](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/features/nhi/nhi-disable-accounts.md): disable Active Directory service accounts from NHI Security, with built-in guardrails
* [Revoke Direct Access in SharePoint](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/features/insights/remediation-actions/remediation-revoke-direct-access.md)
* [Remove User from Groups](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/features/insights/remediation-actions/remediation-remove-user-from-groups.md)
* [Okta: Enabling provisioning](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/integrations/integrations/okta/provisioning.md)
* [Azure AD: Enabling provisioning](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/integrations/integrations/azure/provisioning.md)
* [Active Directory: Enabling provisioning](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/integrations/integrations/active-directory/provisioning.md)
* [Lifecycle Management](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/features/lifecycle-management.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.veza.com/4yItIzMvkpAvMVFAamTf/features/insights/remediation-actions/remediation-disable-accounts.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
