**Source URL:** https://limited.veevavault.dev/commercial/vault-api/api-reference/22.3/users/disable-user.md

# Disable User



Disable a user in a specific Vault or disable a user in all Vaults in the domain.

<Aside>This endpoint disables users at the domain level. Beginning in v18.1, Admins create and manage users with `user__sys` object records. To disable users in an individual Vault, use the single or bulk [Initiate Object Action](/vault-api/api-reference/22.3/object-lifecycle-workflows/object-record-user-actions/initiate-object-action-on-a-single-record) endpoint to initiate the <em>Make User Inactive</em> action on the desired records.</Aside>

## Permissions {#permissions}

System Admins and Vault Owners can update users in the Vaults where they have administrative access. System Admins who are also Domain Admins have an unrestricted access to users across all Vaults in the domain.

<Endpoint path="/api/{version}/objects/users/{user_id}" method="DELETE"></Endpoint>

## Headers {#headers}

<FieldTable>
| Name | Description |
| --- | --- |
| `Accept` | `application/json` (default) or `application/xml` |
</FieldTable>

## URI Path Parameters {#uri-path-parameters}

<FieldTable>
| Name | Description |
| --- | --- |
| `{user_id}` | The user `id` field value. See [Retrieve All Users](/vault-api/api-reference/22.3/users/retrieve-all-users) above. |
</FieldTable>

## Query Parameters {#query-parameters}

<FieldTable>
| Name | Description |
| --- | --- |
| `domain` | When `true`, this disables the user account in all Vaults in the domain. |
</FieldTable>

## Request: Disable User in a Vault {#request-disable-user-in-a-vault}

This request will set the user (ID: 25001) profile to inactive in the Vault in which the request is made. The user will still be a member in the Vault and retain their license type and security profile, but their user profile will be inactive and they will no longer have access to the Vault.

## Request: Disable User in All Domain Vaults {#request-disable-user-in-all-domain-vaults}

This request will set the user (ID: 25001) profile to inactive in all Vaults in your domain. The user will still be a member in the Vaults and retain their license types and security profiles, but their user profile will be inactive and they will no longer have access to any Vaults in your domain.

## Request : Disable User in a Vault {#request--disable-user-in-a-vault}

<CodeExample title="">
```
curl -X DELETE -H "Authorization: {SESSION_ID}" \
https://myvault.veevavault.com/api/v15.0/objects/users/25001

```
</CodeExample>

## Request : Disable User in All Domain Vaults {#request--disable-user-in-all-domain-vaults}

<CodeExample title="">
```
curl -X DELETE -H "Authorization: {SESSION_ID}" \
https://myvault.veevavault.com/api/v15.0/objects/users/25001?domain=true

```
</CodeExample>

## Response {#response}

<CodeExample title="">
```
{
    "responseStatus": "SUCCESS",
    "id": 25001
}

```
</CodeExample>

---

**Previous:** [Update Multiple Users](/commercial/vault-api/api-reference/22.3/users/update-users/update-multiple-users)  
**Next:** [Change My Password](/commercial/vault-api/api-reference/22.3/users/change-my-password)