Find users with browse permission
GET
/rest/api/3/user/viewissue/search
User search
issueKey
.projectKey
.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.Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://jira.local:8080/jira/rest//rest/api/3/user/viewissue/search'
Response Response Example
200 - Success
[
{
"self": "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g",
"key": "",
"accountId": "5b10a2844c20165700ede21g",
"accountType": "atlassian",
"name": "",
"avatarUrls": {
"48x48": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48",
"24x24": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
"16x16": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
"32x32": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32"
},
"displayName": "Mia Krystof",
"active": false
},
{
"self": "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10ac8d82e05b22cc7d4ef5",
"key": "",
"accountId": "5b10ac8d82e05b22cc7d4ef5",
"accountType": "atlassian",
"name": "",
"avatarUrls": {
"48x48": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/AA-3.png?size=48&s=48",
"24x24": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/AA-3.png?size=24&s=24",
"16x16": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/AA-3.png?size=16&s=16",
"32x32": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/AA-3.png?size=32&s=32"
},
"displayName": "Emma Richards",
"active": false
}
]
Request
Query Params
query
stringÂ
optional
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.username
stringÂ
optional
accountId
stringÂ
optional
accountId
. Required, unless query
is specified.issueKey
stringÂ
optional
projectKey
is specified.projectKey
stringÂ
optional
issueKey
is specified.startAt
integerÂ
optional
maxResults
integerÂ
optional
Responses
Modified at 2023-07-13 03:27:27