---
title: "Closes one or more users in the account."
method: DELETE
path: "/v2.1/accounts/{accountId}/users"
tags: ["Users"]
---

# Closes one or more users in the account.

`DELETE /v2.1/accounts/{accountId}/users`

Closes one or more users in the account,
preventing them from accessing account features.
Users are not permanently deleted.

The request body requires only
the IDs of the users to close:

```json
{
    "users": [
        { "userId": "6b67a1ee-xxxx-xxxx-xxxx-385763624163" },
        { "userId": "b6c74c52-xxxx-xxxx-xxxx-457a81d88926" },
        { "userId": "464f7988-xxxx-xxxx-xxxx-781ee556ab7a" }
    ]
}
```

You can use [`Users:update`](/docs/esign-rest-api/reference/users/users/update/)
to re-open a closed user.

## Path parameters

- `accountId` string, required

## Query parameters

- `delete` string

## Request body

- UserInfoList
  - `users` UserInfo[] — An array of `userInfo` objects containing information about the users in the group.
    - `accountId` string — The account ID associated with the envelope.
    - `accountName` string — The name on the account.
    - `activationAccessCode` string — Access code provided to the user to activate the account.
    - `email` string — The user's email address.
    - `errorDetails` ErrorDetails — This object describes errors that occur. It is only valid for responses and ignored in requests.
      - `errorCode` string — The code associated with the error condition.
      - `message` string — A brief message describing the error condition.
    - `ipAddress` string
    - `loginStatus` string — When **true,** indicates that the user is logged in. This is a read-only property.
    - `membershipId` string — The user's membership ID.
    - `sendActivationEmail` string — This field is no longer supported for most accounts. To create an eSignature user without sending an activation email, use the Admin API by following [these steps](/docs/admin-api/how-to/create-active-user/).
    - `uri` string — A URI containing the user ID.
    - `userId` string — The ID of the user to access.
    - `userName` string — The name of the user.
    - `userStatus` string — Status of the user's account. One of: - `ActivationRequired` - `ActivationSent` - `Active` - `Closed` - `Disabled`
    - `userType` string — The type of user, for example `CompanyUser`.

## Response `200`

Successful response.

## Other responses

- `400` — Error encountered.

---

[API](https://skmtc.net/docusign/apis/docusign-esignature-rest-api.md) · [All operations](https://skmtc.net/docusign/apis/docusign-esignature-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/docusign/docusign-esignature-rest-api/versions/77f1998c313d/schema)
