GET /rest/api/2/groupuserpicker
Returns a list of users and groups matching a string. The string is used:
- for users, to find a case-insensitive match with display name and e-mail address. Note that if a user has hidden their email address in their user profile, partial matches of the email address will not find the user. An exact match is required.
- for groups, to find a case-sensitive match with group name.
For example, if the string tin is used, records with the display name Tina, email address sarah@tinplatetraining.com, and the group accounting would be returned.
Optionally, the search can be refined to:
-
the projects and issue types associated with a custom field, such as a user picker. The search can then be further refined to return only users and groups that have permission to view specific:
- projects.
- issue types.
If multiple projects or issue types are specified, they must be a subset of those enabled for the custom field or no results are returned. For example, if a field is enabled for projects A, B, and C then the search could be limited to projects B and C. However, if the search is limited to projects B and D, nothing is returned.
-
not return Connect app users and groups.
-
return groups that have a case-insensitive match with the query.
The primary use case for this resource is to populate a picker field suggestion list with users or groups. To this end, the returned object includes an html
field for each list. This field highlights the matched query term in the item name with the HTML strong tag. Also, each list is wrapped in a response object that contains a header for use in a picker, specifically Showing X of Y matching groups.
This operation can be accessed anonymously.
Permissions required: Browse users and groups global permission.
Servers
- https://your-domain.atlassian.net
Query parameters
Name | Type | Required | Description |
---|---|---|---|
fieldId |
String | No |
The custom field ID of the field this request is for. |
projectId[] |
Array | No |
The ID of a project that returned users and groups must have permission to view. To include multiple projects, provide an ampersand-separated list. For example, |
showAvatar |
Boolean | No |
Whether the user avatar should be returned. If an invalid value is provided, the default value is used. Default value: false |
query |
String | Yes |
The search string. |
maxResults |
Integer | No |
The maximum number of items to return in each list. Default value: 50 |
avatarSize |
String | No |
The size of the avatar to return. If an invalid value is provided, the default value is used. Possible values:
Default value: "xsmall" |
excludeConnectAddons |
Boolean | No |
Whether Connect app users and groups should be excluded from the search results. If an invalid value is provided, the default value is used. Default value: false |
caseInsensitive |
Boolean | No |
Whether the search for groups should be case insensitive. Default value: false |
issueTypeId[] |
Array | No |
The ID of an issue type that returned users and groups must have permission to view. To include multiple issue types, provide an ampersand-separated list. For example, |
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.