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

Change password

Change the password for the user identified by the username.

Validation rules :

  • The new password should not be null or blank.
POST/rest/api/admin/user/{username}/password
Path parameters
usernamestringrequired

the username identifying the given user

Request body
application/json
passwordstring
Responses
204

returns no content if the password is changed successfully

400

returned if any error occurs while changing user password. Refer to the validation rules above.

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

returned if user does not have enough permission to change another user's password. User should be a System admin

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

returned if user with specified userName not found

statusCodeinteger<int32>
dataValidationResult
Show properties
authorizedboolean
validboolean
errorsobject
successfulboolean
allowedInReadOnlyModeboolean
messagestring
reasonstring
Try it
Server
Parameters
Bodyapplication/json
Request
curl -X POST 'http://example.com:7990/confluence/rest/api/admin/user/string/password' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "password": "password"
}'
Response
returns no content if the password is changed successfully

Was this page helpful?