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

Delete user

Removes user and its references (like project roles associations, watches, history). Note: user references will not be removed if multiple User Directories are used and there is a user with the same name existing in another directory (shadowing user).

DELETE/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

Responses
204

Returned if the user was deleted successfully.

400

Returned if the request is invalid or some other server error occurred.

401

Returned if the user is not authenticated.

403

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

404

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

Try it
Server
Authorization
Parameters
Request
curl -X DELETE 'http://jira.example.com/rest/api/2/user' \
  -H 'Authorization: Basic YOUR_CREDENTIALS'
Response
Returned if the user was deleted successfully.

Was this page helpful?