provider User search GET
/rest/api/3/user/viewissue/search @utdk/jira
/rest/api/3/user/viewissue/search Find users with browse permission
Returns a list of users who fulfill these criteria:
* their user attributes match a search string.
* they have permission to browse issues.
Use this resource to find users who can browse:
* an issue, by providing the `issueKey`.
* any issue in a project, by providing the `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](#api-rest-api-3-users-search-get) 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](https://developer.atlassian.com/cloud/jira/platform/profile-visibility/) for more details.
This operation can be accessed anonymously.
**[Permissions](#permissions) required:** *Browse users and groups* [global permission](https://confluence.atlassian.com/x/x4dKLg). Anonymous calls and calls by users without the required permission return empty search results.
- query query
- 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*. Required, unless `accountId` is specified.
- string
- username query
- This parameter is no longer available. See the [deprecation notice](https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/) for details.
- string
- accountId query
- A query string that is matched exactly against user `accountId`. Required, unless `query` is specified.
- string
- issueKey query
- The issue key for the issue. Required, unless `projectKey` is specified.
- string
- projectKey query
- The project key for the project (case sensitive). Required, unless `issueKey` is specified.
- string
- startAt query
- The index of the first item to return in a page of results (page offset).
- integer
- maxResults query
- The maximum number of items to return per page.
- integer
Try it
Authentication
Configure credentials for The Jira Cloud platform REST API
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.
Saved automatically to browser storage.
Code snippet
Updates live as you fill in the form above.
TypeScript
import jira from '@utdk/jira';
await jira.finduserswithbrowsepermission({
"startAt": 0,
"maxResults": 50
})