---
ai:
  exclude: true
search:
  tags:
    - Admin User
    - PUT
seo:
  description: >-
    Disables the given User identified by username.… Reference for the PUT
    /rest/api/admin/user/{username}/disable endpoint in the Confluence Data
    Center API.
sidebar:
  label: Disable user
  badge: PUT
title: Disable user
type: openapi-operation
---
Disables the given User identified by username. This method is idempotent i.e. if the user is already disabled then no action will be taken.

`PUT /rest/api/admin/user/{username}/disable`

**Responses**

- `204` — returns no content if the user is disabled
- `401` — The calling user is not authenticated or does not have the \<b\>LICENSED\</b\> permission.
- `403` — The calling user does not have permission to perform this action.
- `404` — No User exists for the provided username.
