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


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

|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | addCustomer(username, project) | **Package** |  |
| **Alias** |  | **Pkg Usage** |  |

## Description

> Macro (excerpt)
> 
> Adds an existing customer or a list of customers to a specified Service Desk project.

Adds an existing customer or a list of customers to a specified Service Desk project.

## Parameters

| Parameter name | Type | Required | Description |
| --- | --- | --- | --- |
| username | String [] | Yes | The customers' username. |
| project | String | Yes | The key of the selected project. |

## Return Type

**Boolean**

Returns "true" if the operation succeeded.

## Examples

### Example 1

```
return addCustomer({"customer1","customer2"}, "JSD");
```

### Example 2

```
return addCustomer("customer@cprime.com", "JSD");
```

## See also

> Macro (contentbylabel)