GET

Get user by username or key

Returns a user.

Request

Query parameters

includeDeleted

boolean

key

string

username

string

Responses

Returns a user.

application/json

UserBean
GET/api/2/user
1 2 3 4 curl --request GET \ --url 'http://{baseurl}/rest/api/2/user' \ --user 'email@example.com:<api_token>' \ --header 'Accept: application/json'
PUT

Update user detailsExperimental

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

Request

Query parameters

key

string

username

string

Request bodyapplication/json

User details

active

boolean

applicationKeys

array<string>

displayName

string

emailAddress

string

key

string

name

string

notification

string

password

string

self

string

Responses

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

application/json

UserWriteBean
PUT/api/2/user
1 2 3 4 5 curl --request PUT \ --url 'http://{baseurl}/rest/api/2/user' \ --user 'email@example.com:<api_token>' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json'
POST

Create new userExperimental

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

Request

Request bodyapplication/json

User details

active

boolean

applicationKeys

array<string>

displayName

string

emailAddress

string

key

string

name

string

notification

string

password

string

self

string

Responses

Returned if the user was created.

application/json

UserWriteBean
POST/api/2/user
1 2 3 4 5 curl --request POST \ --url 'http://{baseurl}/rest/api/2/user' \ --user 'email@example.com:<api_token>' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json'
DEL

Delete userExperimental

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).

Request

Query parameters

key

string

username

string

Responses

Returned if the user was deleted successfully.

DEL/api/2/user
1 2 3 curl --request DELETE \ --url 'http://{baseurl}/rest/api/2/user' \ --user 'email@example.com:<api_token>'
GET

Get available accessibility personal settings

Returns available accessibility personal settings along with enabled property that indicates the currently logged-in user preference.

Request

This request has no parameters.

Responses

Returned when validation succeeded.

application/json

A11yPersonalSettingBean
GET/api/2/user/a11y/personal-settings
1 2 3 curl --request GET \ --url 'http://{baseurl}/rest/api/2/user/a11y/personal-settings' \ --header 'Accept: application/json'
GET

Get validation for user anonymization

Validates user anonymization process.

Request

Query parameters

expand

string

userKey

string

Responses

Returned when validation succeeded.

GET/api/2/user/anonymization
1 2 curl --request GET \ --url 'http://{baseurl}/rest/api/2/user/anonymization'
POST

Schedule user anonymization

Schedules a user anonymization process. Requires system admin permission.

Request

Request bodyapplication/json

JSON containing parameters to schedule the anonymization process with

newOwnerKey

string

userKey

string

Responses

Returned if the process was scheduled. Note that it can still fail the extended validation once its execution starts.

POST/api/2/user/anonymization
1 2 3 curl --request POST \ --url 'http://{baseurl}/rest/api/2/user/anonymization' \ --header 'Content-Type: application/json'
GET

Get user anonymization progress

Returns information about a user anonymization operation progress.

Request

Query parameters

taskId

integer

Responses

Returns a representation of the progress of the user anonymization operation.

GET/api/2/user/anonymization/progress
1 2 curl --request GET \ --url 'http://{baseurl}/rest/api/2/user/anonymization/progress'
GET

Get validation for user anonymization rerun

Validates user anonymization re-run process.

Request

Query parameters

expand

string

oldUserKey

string

oldUserName

string

userKey

string

Responses

Returned when validation succeeded.

application/json

UserAnonymizationValidationBean
GET/api/2/user/anonymization/rerun
1 2 3 curl --request GET \ --url 'http://{baseurl}/rest/api/2/user/anonymization/rerun' \ --header 'Accept: application/json'
POST

Schedule user anonymization rerun

Schedules a user anonymization process. Requires system admin permission.

Request

Request bodyapplication/json

JSON containing parameters to schedule the anonymization process with

newOwnerKey

string

oldUserKey

string

oldUserName

string

userKey

string

Responses

Returned if the process was scheduled. Note that it can still fail the extended validation once its execution starts.

POST/api/2/user/anonymization/rerun
1 2 3 curl --request POST \ --url 'http://{baseurl}/rest/api/2/user/anonymization/rerun' \ --header 'Content-Type: application/json'
DEL

Delete stale user anonymization task

Removes stale user anonymization task, for scenarios when the node that was executing it is no longer alive. Use it only after making sure that the parent node of the task is actually down, and not just having connectivity issues.

Request

This request has no parameters.

Responses

Returned when anonymization task has been successfully removed.

DEL/api/2/user/anonymization/unlock
1 2 curl --request DELETE \ --url 'http://{baseurl}/rest/api/2/user/anonymization/unlock'
POST

Add user to applicationExperimental

Add user to given application. Admin permission will be required to perform this operation.

Request

Query parameters

applicationKey

string

username

string

Responses

Returned if the user exists, the caller has permission to add user to application and user was successfully added to application.

POST/api/2/user/application
1 2 3 curl --request POST \ --url 'http://{baseurl}/rest/api/2/user/application' \ --user 'email@example.com:<api_token>'
DEL

Remove user from applicationExperimental

Remove user from given application. Admin permission will be required to perform this operation.

Request

Query parameters

applicationKey

string

username

string

Responses

Returned if the user exists, the caller has permission to remove user from application and the user was successfully removed from application.

DEL/api/2/user/application
1 2 3 curl --request DELETE \ --url 'http://{baseurl}/rest/api/2/user/application' \ --user 'email@example.com:<api_token>'
GET

Find bulk assignable users

Returns a list of users that match the search string and can be assigned issues for all the given projects.

Request

Query parameters

maxResults

integer

projectKeys

string

username

string

Responses

Returns a list of users that match the search string.

application/json

UserBean
GET/api/2/user/assignable/multiProjectSearch
1 2 3 4 curl --request GET \ --url 'http://{baseurl}/rest/api/2/user/assignable/multiProjectSearch' \ --user 'email@example.com:<api_token>' \ --header 'Accept: application/json'
GET

Find assignable users by username

Returns a list of users that match the search string. This resource cannot be accessed anonymously. Please note that this resource should be called with an issue key when a list of assignable users is retrieved. For create only a project key should be supplied. The list of assignable users may be incorrect if it's called with the project key for editing.

Request

Query parameters

issueKey

string

maxResults

integer

project

string

actionDescriptorId

integer

username

string

Responses

Returns a list of users that match the search string.

application/json

UserBean
GET/api/2/user/assignable/search
1 2 3 4 curl --request GET \ --url 'http://{baseurl}/rest/api/2/user/assignable/search' \ --user 'email@example.com:<api_token>' \ --header 'Accept: application/json'
PUT

Update user avatar

Updates the avatar for the user.

Request

Query parameters

username

string

Request bodyapplication/json

New avatar details

id

string

owner

string

selected

boolean

Responses

Returns updated avatar

application/json

AvatarBean
PUT/api/2/user/avatar
1 2 3 4 5 curl --request PUT \ --url 'http://{baseurl}/rest/api/2/user/avatar' \ --user 'email@example.com:<api_token>' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json'
POST

Create avatar from temporary

Converts temporary avatar into a real avatar

Request

Query parameters

username

string

Request bodyapplication/json

Cropping instructions

cropperOffsetX

integer

cropperOffsetY

integer

cropperWidth

integer

needsCropping

boolean

url

string

Responses

Returns created avatar

application/json

AvatarBean
POST/api/2/user/avatar
1 2 3 4 5 curl --request POST \ --url 'http://{baseurl}/rest/api/2/user/avatar' \ --user 'email@example.com:<api_token>' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json'
POST

Store temporary avatar using multipart

Creates temporary avatar using multipart. The response is sent back as JSON stored in a textarea. This is because the client uses remote iframing to submit avatars using multipart. So we must send them a valid HTML page back from which the client parses the JSON from. Creating a temporary avatar is part of a 3-step process in uploading a new avatar for a user: upload, crop, confirm. This endpoint allows you to use a multipart upload instead of sending the image directly as the request body. You must use "avatar" as the name of the upload parameter: curl -c cookiejar.txt -X POST -u admin:admin -H "X-Atlassian-Token: no-check"
-F "avatar=@mynewavatar.png;type=image/png"
'http://localhost:8090/jira/rest/api/2/user/avatar/temporary?username=admin'

Request

Query parameters

username

string

Request bodymultipart/form-data

The file data

any

Responses

Returns temporary avatar cropping instructions embeded in HTML page. Error messages will also be embeded in the page.

text/html

AvatarCroppingBean
POST/api/2/user/avatar/temporary
1 2 3 4 curl --request POST \ --url 'http://{baseurl}/rest/api/2/user/avatar/temporary' \ --user 'email@example.com:<api_token>' \ --header 'Accept: text/html'
DEL

Delete avatar

Deletes avatar

Request

Path parameters

id

integer

Required

Query parameters

username

string

Responses

Returned if the avatar is successfully deleted.

DEL/api/2/user/avatar/{id}
1 2 3 curl --request DELETE \ --url 'http://{baseurl}/rest/api/2/user/avatar/{id}' \ --user 'email@example.com:<api_token>'
GET

Get all avatars for user

Returns all avatars which are visible for the currently logged in user.

Request

Query parameters

username

string

Responses

Returns a map containing a list of avatars for both custom an system avatars

application/json

AvatarBean
GET/api/2/user/avatars
1 2 3 4 curl --request GET \ --url 'http://{baseurl}/rest/api/2/user/avatars' \ --user 'email@example.com:<api_token>' \ --header 'Accept: application/json'
GET

Get default columns for user

Returns the default columns for the given user. Admin permission will be required to get columns for a user other than the currently logged in user.

Request

Query parameters

username

string

Responses

Returns a list of columns for configured for the given user

application/json

ColumnOptions

GET/api/2/user/columns
1 2 3 4 curl --request GET \ --url 'http://{baseurl}/rest/api/2/user/columns' \ --user 'email@example.com:<api_token>' \ --header 'Accept: application/json'
PUT

Set default columns for user

Sets the default columns for the given user. Admin permission will be required to get columns for a user other than the currently logged in user.

Request

Request bodyapplication/x-www-form-urlencoded

username

string

columns

array<string>

Responses

Returned when the columns is saved successfully

PUT/api/2/user/columns
1 2 3 curl --request PUT \ --url 'http://{baseurl}/rest/api/2/user/columns' \ --user 'email@example.com:<api_token>'
DEL

Reset default columns to system default

Reset the default columns for the given user to the system default. Admin permission will be required to get columns for a user other than the currently logged in user.

Request

Query parameters

username

string

Responses

Returned when the columns are reset successfully

DEL/api/2/user/columns
1 2 3 curl --request DELETE \ --url 'http://{baseurl}/rest/api/2/user/columns' \ --user 'email@example.com:<api_token>'
GET

Get duplicated users countExperimental

Returns a list of users that match the search string. This resource cannot be accessed anonymously. Duplicated means that the user has an account in more than one directory and either more than one account is active or the only active account does not belong to the directory with the highest priority. The data returned by this endpoint is cached for 10 minutes and the cache is flushed when any User Directory is added, removed, enabled, disabled, or synchronized. A System Administrator can also flush the cache manually. Related JAC ticket: https://jira.atlassian.com/browse/JRASERVER-68797

Request

Query parameters

flush

boolean

Responses

Returns a list of users that match the search string.

application/json

UserBean
GET/api/2/user/duplicated/count
1 2 3 4 curl --request GET \ --url 'http://{baseurl}/rest/api/2/user/duplicated/count' \ --user 'email@example.com:<api_token>' \ --header 'Accept: application/json'
GET

Get duplicated users mappingExperimental

Returns duplicated users mapped to their directories with an indication if their accounts are active or not. Duplicated means that the user has an account in more than one directory and either more than one account is active or the only active account does not belong to the directory with the highest priority. The data returned by this endpoint is cached for 10 minutes and the cache is flushed when any User Directory is added, removed, enabled, disabled, or synchronized. A System Administrator can also flush the cache manually. Related JAC ticket: https://jira.atlassian.com/browse/JRASERVER-68797

Request

Query parameters

flush

boolean

Responses

Returns all avatars which are visible for the currently logged in user.

application/json

AvatarBean
GET/api/2/user/duplicated/list
1 2 3 4 curl --request GET \ --url 'http://{baseurl}/rest/api/2/user/duplicated/list' \ --user 'email@example.com:<api_token>' \ --header 'Accept: application/json'
PUT

Update user passwordExperimental

Modify user password.

Request

Query parameters

key

string

username

string

Request bodyapplication/json

Password details

currentPassword

string

password

string

Responses

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

PUT/api/2/user/password
1 2 3 4 curl --request PUT \ --url 'http://{baseurl}/rest/api/2/user/password' \ --user 'email@example.com:<api_token>' \ --header 'Content-Type: application/json'
GET

Find users with all specified permissionsDeprecated

Returns a list of active users that match the search string and have all specified permissions for the project or issue. This resource can be accessed by users with ADMINISTER_PROJECT permission for the project or global ADMIN or SYSADMIN rights. This endpoint can cause serious performance issues and will be removed in Jira 9.0.

Request

Query parameters

projectKey

string

issueKey

string

maxResults

integer

permissions

string

startAt

integer

username

string

Responses

Returns a list of users that match the search string.

application/json

UserBean
GET/api/2/user/permission/search
1 2 3 4 curl --request GET \ --url 'http://{baseurl}/rest/api/2/user/permission/search' \ --user 'email@example.com:<api_token>' \ --header 'Accept: application/json'
GET

Find users for picker by query

Returns a list of users matching query with highlighting.

Request

Query parameters

maxResults

integer

query

string

exclude

array<string>

showAvatar

boolean

Responses

Returns a list of users matching query with highlighting.

application/json

UserPickerResultsBean

GET/api/2/user/picker
1 2 3 4 curl --request GET \ --url 'http://{baseurl}/rest/api/2/user/picker' \ --user 'email@example.com:<api_token>' \ --header 'Accept: application/json'
GET

Get keys of all properties for a user

Returns the keys of all properties for the user identified by the key or by the id.

Request

Query parameters

userKey

string

username

string

Responses

Returned if the user was found.

GET/api/2/user/properties
1 2 curl --request GET \ --url 'http://{baseurl}/rest/api/2/user/properties'
GET

Get the value of a specified user's property

Returns the value of the property with a given key from the user identified by the key or by the id.

Request

Path parameters

propertyKey

string

Required

Query parameters

userKey

string

username

string

Responses

Returned if the user property was found.

GET/api/2/user/properties/{propertyKey}
1 2 curl --request GET \ --url 'http://{baseurl}/rest/api/2/user/properties/{propertyKey}'
PUT

Set the value of a specified user's property

Sets the value of the specified user's property. You can use this resource to store a custom data against the user identified by the key or by the id. The user who stores the data is required to have permissions to administer the user.

Request

Path parameters

propertyKey

string

Required

Query parameters

userKey

string

username

string

Request bodyapplication/json

The request containing value of the user's property. The value has to be a valid, non-empty JSON conforming to http://tools.ietf.org/html/rfc4627. The maximum length of the property value is 32768 bytes.

string

Responses

Returned if the user property is successfully updated.

PUT/api/2/user/properties/{propertyKey}
1 2 3 curl --request PUT \ --url 'http://{baseurl}/rest/api/2/user/properties/{propertyKey}' \ --header 'Content-Type: application/json'
DEL

Delete a specified user's property

Removes the property from the user identified by the key or by the id. The user who removes the property is required to have permissions to administer the user.

Request

Path parameters

propertyKey

string

Required

Query parameters

userKey

string

username

string

Responses

Returned if the user property was removed successfully.

DEL/api/2/user/properties/{propertyKey}
1 2 curl --request DELETE \ --url 'http://{baseurl}/rest/api/2/user/properties/{propertyKey}'
GET

Find users by username

Finds users.

Request

Query parameters

includeInactive

boolean

maxResults

integer

includeActive

boolean

startAt

integer

username

string

Responses

Returns a list of users.

application/json

UserBean
GET/api/2/user/search
1 2 3 4 curl --request GET \ --url 'http://{baseurl}/rest/api/2/user/search' \ --user 'email@example.com:<api_token>' \ --header 'Accept: application/json'
DEL

Delete user session

Invalidates session of given user.

Request

Path parameters

username

string

Required

Responses

Returned when the session is invalidated successfully.

DEL/api/2/user/session/{username}
1 2 3 curl --request DELETE \ --url 'http://{baseurl}/rest/api/2/user/session/{username}' \ --user 'email@example.com:<api_token>'
GET

Find users with browse permission

Returns a list of active users that match the search string. This resource cannot be accessed anonymously and requires the Browse Users global permission. Given an issue key this resource will provide a list of users that match the search string and have the browse issue permission for the issue provided.

Request

Query parameters

projectKey

string

issueKey

string

maxResults

integer

username

string

Responses

Returns a list of users that match the search string.

application/json

UserBean
GET/api/2/user/viewissue/search
1 2 3 4 curl --request GET \ --url 'http://{baseurl}/rest/api/2/user/viewissue/search' \ --user 'email@example.com:<api_token>' \ --header 'Accept: application/json'

Rate this page: