Skip to content
atlassian-dc-mcp
Esc
↑↓navigate↵open⌘Jpreview

Disable user

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
Path parameters
usernamestringrequired

the username identifying the given user

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.

statusCodeinteger<int32>
dataValidationResult
Show properties
authorizedboolean
validboolean
errorsobject
successfulboolean
allowedInReadOnlyModeboolean
messagestring
reasonstring
403

The calling user does not have permission to perform this action.

statusCodeinteger<int32>
dataValidationResult
Show properties
authorizedboolean
validboolean
errorsobject
successfulboolean
allowedInReadOnlyModeboolean
messagestring
reasonstring
404

No User exists for the provided username.

statusCodeinteger<int32>
dataValidationResult
Show properties
authorizedboolean
validboolean
errorsobject
successfulboolean
allowedInReadOnlyModeboolean
messagestring
reasonstring
Try it
Server
Parameters
Request
curl -X PUT 'http://example.com:7990/confluence/rest/api/admin/user/string/disable' \
  -H 'Accept: application/json'
Response
returns no content if the user is disabled

Was this page helpful?