Internal
Create a new instance of the service.
Returns a list of users that can be assigned to an issue. Use this operation to find the list of users who can be assigned to:
projectKeyOrId
.issueKey
or issueId
.issueKey
or issueId
and the transition id in actionDescriptorId
. You can
obtain the IDs of an issue's valid transitions using the transitions
option
in the expand
parameter of Get
issue.In all these cases, you can pass an account ID to determine if a user can be assigned to an issue. The user is returned in the response if they can be assigned to the issue or issue transition.
This operation takes the users in the range defined by startAt
and
maxResults
, up to the thousandth user, and then returns only the users from
that range that can be assigned the issue. This means the operation usually
returns fewer users than specified in maxResults
. To get all the users who
can be assigned the issue, use Get all
users and filter the records in your code.
Privacy controls are applied to the response based on the users' preferences. This could mean, for example, that the user's email address is hidden. See the Profile visibility overview for more details.
Permissions required: Browse users and groups global permission or Assign issues project permission
Optional
accountA query string that is matched exactly against user accountId
. Required,
unless query
is specified.
Optional
actionThe ID of the transition.
Optional
issueThe ID of the issue. Required, unless issueKey
or project
is specified.
Optional
issueThe key of the issue. Required, unless issueId
or project
is specified.
Optional
maxThe maximum number of items to return. This operation may return less than the maximum number of items even if more are available. The operation fetches users up to the maximum and then, from the fetched users, returns only the users that can be assigned to the issue.
Optional
project?: stringThe project ID or project key (case sensitive). Required, unless issueKey
or
issueId
is specified.
Optional
query?: stringA query string that is matched against user attributes, such as displayName
,
and emailAddress
, to find relevant users. The string can match the prefix of
the attribute's value. For example, query=john matches a user with a
displayName
of John Smith and a user with an emailAddress
of
johnson@example.com. Required, unless username
or accountId
is specified.
Optional
recommend?: booleanOptional
sessionThe sessionId of this request. SessionId is the same until the assignee is set.
Optional
startThe index of the first item to return in a page of results (page offset).
Optional
username?: stringThis parameter is no longer available. See the deprecation notice for details.
Returned if the request is successful.
example:
{
"accountId": "5b10a2844c20165700ede21g",
"accountType": "atlassian",
"active": true,
"applicationRoles": {
"items": [],
"size": 1
},
"avatarUrls": {
"16x16": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
"24x24": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
"32x32": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
"48x48": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
},
"displayName": "Mia Krystof",
"emailAddress": "mia@example.com",
"groups": {
"items": [],
"size": 3
},
"key": "",
"name": "",
"self": "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g",
"timeZone": "Australia/Sydney"
}
Returns a list of users who can be assigned issues in one or more projects. The list may be restricted to users whose attributes match a string.
This operation takes the users in the range defined by startAt
and
maxResults
, up to the thousandth user, and then returns only the users from
that range that can be assigned issues in the projects. This means the
operation usually returns fewer users than specified in maxResults
. To get
all the users who can be assigned issues in the projects, use Get all
users and filter the records in your code.
Privacy controls are applied to the response based on the users' preferences. This could mean, for example, that the user's email address is hidden. See the Profile visibility overview for more details.
This operation can be accessed anonymously.
Permissions required: None.
Optional
accountA query string that is matched exactly against user accountId
. Required,
unless query
is specified.
Optional
maxThe maximum number of items to return per page.
A list of project keys (case sensitive). This parameter accepts a comma-separated list.
Optional
query?: stringA query string that is matched against user attributes, such as displayName
and emailAddress
, to find relevant users. The string can match the prefix of
the attribute's value. For example, query=john matches a user with a
displayName
of John Smith and a user with an emailAddress
of
johnson@example.com. Required, unless accountId
is specified.
Optional
startThe index of the first item to return in a page of results (page offset).
Optional
username?: stringThis parameter is no longer available. See the deprecation notice for details.
Returned if the request is successful.
example:
[
{
"accountId": "5b10a2844c20165700ede21g",
"accountType": "atlassian",
"active": false,
"avatarUrls": {
"16x16": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
"24x24": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
"32x32": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
"48x48": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
},
"displayName": "Mia Krystof",
"key": "",
"name": "",
"self": "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
},
{
"accountId": "5b10ac8d82e05b22cc7d4ef5",
"accountType": "atlassian",
"active": false,
"avatarUrls": {
"16x16": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/AA-3.png?size=16&s=16",
"24x24": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/AA-3.png?size=24&s=24",
"32x32": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/AA-3.png?size=32&s=32",
"48x48": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/AA-3.png?size=48&s=48"
},
"displayName": "Emma Richards",
"key": "",
"name": "",
"self": "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10ac8d82e05b22cc7d4ef5"
}
]
Finds users with a structured query and returns a paginated list of user keys.
This operation takes the users in the range defined by startAt
and
maxResults
, up to the thousandth user, and then returns only the users from
that range that match the structured query. This means the operation usually
returns fewer users than specified in maxResults
. To get all the users who
match the structured query, use Get all
users and filter the records in your code.
Permissions required: Browse users and groups global permission.
The query statements are:
is assignee of PROJ
Returns the users that are assignees of at least one
issue in project PROJ.is assignee of (PROJ-1, PROJ-2)
Returns users that are assignees on the
issues PROJ-1 or PROJ-2.is reporter of (PROJ-1, PROJ-2)
Returns users that are reporters on the
issues PROJ-1 or PROJ-2.is watcher of (PROJ-1, PROJ-2)
Returns users that are watchers on the
issues PROJ-1 or PROJ-2.is voter of (PROJ-1, PROJ-2)
Returns users that are voters on the issues
PROJ-1 or PROJ-2.is commenter of (PROJ-1, PROJ-2)
Returns users that have posted a comment
on the issues PROJ-1 or PROJ-2.is transitioner of (PROJ-1, PROJ-2)
Returns users that have performed a
transition on issues PROJ-1 or PROJ-2.[propertyKey].entity.property.path is "property value"
Returns users with
the entity property value. For example, if user property location
is set to
value {"office": {"country": "AU", "city": "Sydney"}}
, then it's possible to
use [location].office.city is "Sydney"
to match the user.The list of issues can be extended as needed, as in (PROJ-1, PROJ-2, ...
PROJ-n). Statements can be combined using the AND
and OR
operators to form
more complex queries. For example:
is assignee of PROJ AND [propertyKey].entity.property.path is "property value"
Optional
maxThe maximum number of items to return per page.
The search query.
Optional
startThe index of the first item to return in a page of results (page offset).
Returned if the request is successful.
Returns a list of active users that match the search string and property.
This operation first applies a filter to match the search string and property,
and then takes the filtered users in the range defined by startAt
and
maxResults
, up to the thousandth user. To get all the users who match the
search string and property, use Get all
users and filter the records in your code.
This operation can be accessed anonymously.
Privacy controls are applied to the response based on the users' preferences. This could mean, for example, that the user's email address is hidden. See the Profile visibility overview for more details.
Permissions required: Browse users and groups global permission. Anonymous calls or calls by users without the required permission return empty search results.
Optional
accountA query string that is matched exactly against a user accountId
. Required,
unless query
or property
is specified.
Optional
maxThe maximum number of items to return per page.
Optional
property?: stringA query string used to search properties. Property keys are specified by path,
so property keys containing dot (.) or equals (=) characters cannot be used.
The query string cannot be specified using a JSON object. Example: To search
for the value of nested
from {"something":{"nested":1,"other":2}}
use
thepropertykey.something.nested=1
. Required, unless accountId
or query
is
specified.
Optional
query?: stringA query string that is matched against user attributes ( displayName
, and
emailAddress
) to find relevant users. The string can match the prefix of the
attribute's value. For example, query=john matches a user with a
displayName
of John Smith and a user with an emailAddress
of
johnson@example.com. Required, unless accountId
or property
is specified.
Optional
startThe index of the first item to return in a page of filtered results (page offset).
Optional
username?: stringReturned if the request is successful.
example:
[
{
"accountId": "5b10a2844c20165700ede21g",
"accountType": "atlassian",
"active": false,
"avatarUrls": {
"16x16": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
"24x24": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
"32x32": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
"48x48": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
},
"displayName": "Mia Krystof",
"key": "",
"name": "",
"self": "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
},
{
"accountId": "5b10ac8d82e05b22cc7d4ef5",
"accountType": "atlassian",
"active": false,
"avatarUrls": {
"16x16": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/AA-3.png?size=16&s=16",
"24x24": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/AA-3.png?size=24&s=24",
"32x32": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/AA-3.png?size=32&s=32",
"48x48": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/AA-3.png?size=48&s=48"
},
"displayName": "Emma Richards",
"key": "",
"name": "",
"self": "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10ac8d82e05b22cc7d4ef5"
}
]
Finds users with a structured query and returns a paginated list of user details.
This operation takes the users in the range defined by startAt
and
maxResults
, up to the thousandth user, and then returns only the users from
that range that match the structured query. This means the operation usually
returns fewer users than specified in maxResults
. To get all the users who
match the structured query, use Get all
users and filter the records in your code.
Permissions required: Browse users and groups global permission.
The query statements are:
is assignee of PROJ
Returns the users that are assignees of at least one
issue in project PROJ.is assignee of (PROJ-1, PROJ-2)
Returns users that are assignees on the
issues PROJ-1 or PROJ-2.is reporter of (PROJ-1, PROJ-2)
Returns users that are reporters on the
issues PROJ-1 or PROJ-2.is watcher of (PROJ-1, PROJ-2)
Returns users that are watchers on the
issues PROJ-1 or PROJ-2.is voter of (PROJ-1, PROJ-2)
Returns users that are voters on the issues
PROJ-1 or PROJ-2.is commenter of (PROJ-1, PROJ-2)
Returns users that have posted a comment
on the issues PROJ-1 or PROJ-2.is transitioner of (PROJ-1, PROJ-2)
Returns users that have performed a
transition on issues PROJ-1 or PROJ-2.[propertyKey].entity.property.path is "property value"
Returns users with
the entity property value. For example, if user property location
is set to
value {"office": {"country": "AU", "city": "Sydney"}}
, then it's possible to
use [location].office.city is "Sydney"
to match the user.The list of issues can be extended as needed, as in (PROJ-1, PROJ-2, ...
PROJ-n). Statements can be combined using the AND
and OR
operators to form
more complex queries. For example:
is assignee of PROJ AND [propertyKey].entity.property.path is "property value"
Optional
maxThe maximum number of items to return per page.
The search query.
Optional
startThe index of the first item to return in a page of results (page offset).
Returned if the request is successful.
Returns a list of users whose attributes match the query term. The returned
object includes the html
field where the matched query term is highlighted
with the HTML strong tag. A list of account IDs can be provided to exclude
users from the results.
This operation takes the users in the range defined by maxResults
, up to the
thousandth user, and then returns only the users from that range that match the
query term. This means the operation usually returns fewer users than specified
in maxResults
. To get all the users who match the query term, use Get all
users and filter the records in your code.
Privacy controls are applied to the response based on the users' preferences. This could mean, for example, that the user's email address is hidden. See the Profile visibility overview for more details.
This operation can be accessed anonymously.
Permissions required: Browse users and groups global permission. Anonymous calls and calls by users without the required permission return search results for an exact name match only.
Optional
avatarOptional
exclude?: string[]This parameter is no longer available. See the deprecation notice for details.
Optional
excludeA list of account IDs to exclude from the search results. This parameter
accepts a comma-separated list. Multiple account IDs can also be provided using
an ampersand-separated list. For example,
excludeAccountIds=5b10a2844c20165700ede21g,5b10a0effa615349cb016cd8&excludeAccountIds=5b10ac8d82e05b22cc7d4ef5
.
Cannot be provided with exclude
.
Optional
excludeOptional
maxThe maximum number of items to return. The total number of matched users is
returned in total
.
A query string that is matched against user attributes, such as displayName
,
and emailAddress
, to find relevant users. The string can match the prefix of
the attribute's value. For example, query=john matches a user with a
displayName
of John Smith and a user with an emailAddress
of
johnson@example.com.
Optional
showInclude the URI to the user's avatar.
Returned if the request is successful.
example:
{
"header": "Showing 20 of 25 matching groups",
"total": 25,
"users": [
{
"accountId": "5b10a2844c20165700ede21g",
"accountType": "atlassian",
"avatarUrl": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
"displayName": "Mia Krystof",
"html": "<strong>Mi</strong>a Krystof - <strong>mi</strong>a@example.com (<strong>mi</strong>a)",
"key": "mia",
"name": "mia"
}
]
}
Returns a list of users who fulfill these criteria:
If no search string is provided, a list of all users with the permissions is returned.
This operation takes the users in the range defined by startAt
and
maxResults
, up to the thousandth user, and then returns only the users from
that range that match the search string and have permission for the project or
issue. This means the operation usually returns fewer users than specified in
maxResults
. To get all the users who match the search string and have
permission for the project or issue, use Get all
users and filter the records in your code.
Privacy controls are applied to the response based on the users' preferences. This could mean, for example, that the user's email address is hidden. See the Profile visibility overview for more details.
This operation can be accessed anonymously.
Permissions required:
Optional
accountA query string that is matched exactly against user accountId
. Required,
unless query
is specified.
Optional
issueThe issue key for the issue.
Optional
maxThe maximum number of items to return per page.
A comma separated list of permissions. Permissions can be specified as any:
permission returned by Get all permissions.
custom project permission added by Connect apps.
(deprecated) one of the following:
Optional
projectThe project key for the project (case sensitive).
Optional
query?: stringA query string that is matched against user attributes, such as displayName
and emailAddress
, to find relevant users. The string can match the prefix of
the attribute's value. For example, query=john matches a user with a
displayName
of John Smith and a user with an emailAddress
of
johnson@example.com. Required, unless accountId
is specified.
Optional
startThe index of the first item to return in a page of results (page offset).
Optional
username?: stringThis parameter is no longer available. See the deprecation notice for details.
Returned if the request is successful.
example:
[
{
"accountId": "5b10a2844c20165700ede21g",
"accountType": "atlassian",
"active": false,
"avatarUrls": {
"16x16": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
"24x24": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
"32x32": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
"48x48": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
},
"displayName": "Mia Krystof",
"key": "",
"name": "",
"self": "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
},
{
"accountId": "5b10ac8d82e05b22cc7d4ef5",
"accountType": "atlassian",
"active": false,
"avatarUrls": {
"16x16": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/AA-3.png?size=16&s=16",
"24x24": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/AA-3.png?size=24&s=24",
"32x32": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/AA-3.png?size=32&s=32",
"48x48": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/AA-3.png?size=48&s=48"
},
"displayName": "Emma Richards",
"key": "",
"name": "",
"self": "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10ac8d82e05b22cc7d4ef5"
}
]
Returns a list of users who fulfill these criteria:
Use this resource to find users who can browse:
issueKey
.projectKey
.This operation takes the users in the range defined by startAt
and
maxResults
, up to the thousandth user, and then returns only the users from
that range that match the search string and have permission to browse issues.
This means the operation usually returns fewer users than specified in
maxResults
. To get all the users who match the search string and have
permission to browse issues, use Get all
users and filter the records in your code.
Privacy controls are applied to the response based on the users' preferences. This could mean, for example, that the user's email address is hidden. See the Profile visibility overview for more details.
This operation can be accessed anonymously.
Permissions required: Browse users and groups global permission. Anonymous calls and calls by users without the required permission return empty search results.
Optional
accountA query string that is matched exactly against user accountId
. Required,
unless query
is specified.
Optional
issueThe issue key for the issue. Required, unless projectKey
is specified.
Optional
maxThe maximum number of items to return per page.
Optional
projectThe project key for the project (case sensitive). Required, unless issueKey
is specified.
Optional
query?: stringA query string that is matched against user attributes, such as displayName
and emailAddress
, to find relevant users. The string can match the prefix of
the attribute's value. For example, query=john matches a user with a
displayName
of John Smith and a user with an emailAddress
of
johnson@example.com. Required, unless accountId
is specified.
Optional
startThe index of the first item to return in a page of results (page offset).
Optional
username?: stringThis parameter is no longer available. See the deprecation notice for details.
Returned if the request is successful.
example:
[
{
"accountId": "5b10a2844c20165700ede21g",
"accountType": "atlassian",
"active": false,
"avatarUrls": {
"16x16": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
"24x24": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
"32x32": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
"48x48": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
},
"displayName": "Mia Krystof",
"key": "",
"name": "",
"self": "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g"
},
{
"accountId": "5b10ac8d82e05b22cc7d4ef5",
"accountType": "atlassian",
"active": false,
"avatarUrls": {
"16x16": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/AA-3.png?size=16&s=16",
"24x24": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/AA-3.png?size=24&s=24",
"32x32": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/AA-3.png?size=32&s=32",
"48x48": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/AA-3.png?size=48&s=48"
},
"displayName": "Emma Richards",
"key": "",
"name": "",
"self": "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10ac8d82e05b22cc7d4ef5"
}
]
Protected
Static
initialize
This resource represents various ways to search for and find users. Use it to obtain list of users including users assignable to projects and issues, users with permissions, user lists for pickup fields, and user lists generated using structured queries. Note that the operations in this resource only return users found within the first 1000 users.
See
https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-user-search