---
title: "gadget_createMultiUserPicker"
canonical: "https://support.appfire.com/space/PSJ/15489704/gadget_createMultiUserPicker"
format: markdown
---
> Macro (aura-html)


> 📝 The use of this function requires the Power Scripts for Jira add-on be installed and licensed.

|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | gadget_createMultiUserPicker(label, defaultValues, isRequired, fieldDescription) | **Package** |  |
| **Alias** |  | **Pkg Usage** |  |

## Description

> Macro (excerpt)
> 
> Creates a multi user picker.

Creates a multi user picker.

## Parameters

| Parameter name | Type | Required | Description |
| --- | --- | --- | --- |
| label | String | Yes | Label of the field |
| defaultValues | String [] | Yes | Few default values or an empty array. If one the default values is not a valid username, it will be discarded and an empty default value will be provided. |
| isRequired | Boolean | Yes | Specifies if the field is should be marked as required with a dark red asterisk. Note that marking the field as required does not add any validation. |
| fieldDescription | String | Yes | Description of the field to be displayed immediately under the input box. |

## Return Type

**String []**

The returned value has no meaning

## Example

```
gadget_createMultiUserPicker("MultiUserPicker", {"admin", "demouser"}, true, "Required Multi User Picker");
gadget_createMultiUserPicker("Another MultiUserPicker", {"admin", "demouser"}, false, "Not required");
```

## See also

> Macro (contentbylabel)

> Macro (fc909b09-b512-4c31-a844-dd855b0e6aae/db1c8759-c7e5-4e80-9022-d19e47b0e2b0/static/macro)