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

Create new user

Create user. By default created user will not be notified with email. If password field is not set then password will be randomly generated.

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

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

Request body
requiredapplication/json

User details

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

Returned if the user was created.

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 create the user.

500

Returned if the user was not created because of other error.

Try it
Server
Authorization
Bodyapplication/json
Request
curl -X POST '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?