GET /rest/api/2/groupuserpicker

Returns a list of users and groups matching a string. The string is used:

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 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

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, projectId=10000&projectId=10001. This parameter is only used when fieldId is present.

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:

  • "large"
  • "small"
  • "xsmall@3x"
  • "xxlarge"
  • "xsmall"
  • "xsmall@2x"
  • "medium"
  • "small@3x"
  • "xlarge@2x"
  • "xxlarge@2x"
  • "xxxlarge@2x"
  • "xlarge"
  • "xlarge@3x"
  • "xxlarge@3x"
  • "xxxlarge@3x"
  • "small@2x"
  • "xxxlarge"
  • "medium@3x"
  • "large@2x"
  • "medium@2x"
  • "large@3x"

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, issueTypeId=10000&issueTypeId=10001. Special values, such as -1 (all standard issue types) and -2 (all subtask issue types), are supported. This parameter is only used when fieldId is present.

How to start integrating

  1. Add HTTP Task to your workflow definition.
  2. 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.
  3. Click Test request to test run your request to the API and see the API's response.