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

Update user details

Modify user. The ‘value’ fields present will override the existing value. Fields skipped in request will not be changed.

PUT/api/2/user
Authorization
AuthorizationBasic auth · headerrequired

In order to use basic authorization, provide username:password Base64 encoded in the 'Authorization' header.

Query parameters
keystring

user key

usernamestring

the username

Request body
requiredapplication/json

User details

activeboolean
applicationKeysstring[]
displayNamestring
emailAddressstring
keystring
namestring
notificationstring
passwordstring
selfstring
Responses
200

Returned if the user exists and the caller has permission to edit it.

activeboolean
applicationKeysstring[]
displayNamestring
emailAddressstring
keystring
namestring
notificationstring
passwordstring
selfstring
400

Returned if the request is invalid.

401

Returned if the user is not authenticated.

403

Returned if the caller user does not have permission to edit the user.

404

Returned if the caller does have permission to edit the user but the user does not exist.

Try it
Server
Authorization
Parameters
Bodyapplication/json
Request
curl -X PUT 'http://jira.example.com/rest/api/2/user' \
  -H 'Authorization: Basic YOUR_CREDENTIALS' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "active": true,
  "applicationKeys": [
    "jira-core"
  ],
  "displayName": "Charlie of Atlassian",
  "emailAddress": "charlie@atlassian.com",
  "key": "charlie",
  "name": "charlie",
  "notification": "HTML",
  "password": "abracadabra",
  "self": "http://www.example.com/jira/rest/api/2/user?username=charlie"
}'
Response
{
  "active": true,
  "applicationKeys": [
    "jira-core"
  ],
  "displayName": "Charlie of Atlassian",
  "emailAddress": "charlie@atlassian.com",
  "key": "charlie",
  "name": "charlie",
  "notification": "HTML",
  "password": "abracadabra",
  "self": "http://www.example.com/jira/rest/api/2/user?username=charlie"
}

Was this page helpful?