> For the complete documentation index, see [llms.txt](https://docs.authgear.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.authgear.com/admin-and-operations/user-management/disable-user.md).

# Disable User

The **Disable User** feature allows administrators to temporarily or permanently suspend a user’s ability to log in and use the system.

When a user is disabled, they cannot authenticate and all active sessions are immediately terminated.

### What Does Disabling a User Do?

When a user is disabled:

* Login attempts are blocked
* Existing sessions are terminated immediately
* The user account and data remain intact
* The user can be re-enabled later if the disable period ends or is removed

Disabling a user is reversible unless the account is removed.

### Disable Period Options

You can choose how long a user is disabled:

* **Disable indefinitely**\
  The user remains disabled until an administrator manually re-enables the account.
* **Disable until a specific date**\
  The user is automatically re-enabled after the specified date and time.

When disabling a user, you can provide an optional **disable reason**. The reason is displayed to the user when they attempt to log in. This can reduce support requests and confusion.

### How to Disable a User

You can disable a user with the Admin API or from the Authgear Portal:

1. Go to **Users**
2. Select the user
3. Open the **Account Status** tab
4. Click **Disable user**
5. Choose the disable period
6. (Optional) Enter a disable reason
7. Confirm the action


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.authgear.com/admin-and-operations/user-management/disable-user.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
