GET /rest/api/2/groups/picker
Returns a list of groups whose names contain a query string. A list of group names can be provided to exclude groups from the results.
The primary use case for this resource is to populate a group picker suggestions list. To this end, the returned object includes the html
field where the matched query term is highlighted in the group name with the HTML strong tag. Also, the groups list is wrapped in a response object that contains a header for use in the picker, specifically Showing X of Y matching groups.
The list returns with the groups sorted. If no groups match the list criteria, an empty list is returned.
This operation can be accessed anonymously.
Permissions required: Browse projects project permission. Anonymous calls and calls by users without the required permission return an empty list.
Browse users and groups global permission. Without this permission, calls where query is not an exact match to an existing group will return an empty list.
Servers
- https://your-domain.atlassian.net
Query parameters
Name | Type | Required | Description |
---|---|---|---|
userName |
String | No |
This parameter is no longer available. See the deprecation notice for details. |
query |
String | No |
The string to find in group names. |
maxResults |
Integer | No |
The maximum number of groups to return. The maximum number of groups that can be returned is limited by the system property |
accountId |
String | No |
This parameter is deprecated, setting it does not affect the results. To find groups containing a particular user, use Get user groups. |
excludeId[] |
Array | No |
A group ID to exclude from the result. To exclude multiple groups, provide an ampersand-separated list. For example, |
caseInsensitive |
Boolean | No |
Whether the search for groups should be case insensitive. Default value: false |
exclude[] |
Array | No |
As a group's name can change, use of |
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.