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


|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | createUser(username, displayName, email, password[, directoryName]) | **Package** | adm |
| **Alias** | createUser | **Pkg Usage** | createUser(username, displayName, email, password[, directoryName]) |

## Description

> Macro (excerpt)
> 
> Creates a new user.

Creates the user and configures it with the username, displayName, email, password and directoryName.

## Parameters

| Parameter name | Type | Required | Description |
| --- | --- | --- | --- |
| username | String | Yes | Username. |
| displayName | String | Yes | Display name. |
| email | String | Yes | Email. |
| password | String | Yes | Password. |
| directoryName | String | No | User directory name. |

## Return Type

**Boolean**

Returns "true" if the user was created and "false" if not.

## Examples

### Example 1

```
createUser("user", "fullname", "user@example.com", "password");
```

### Example 2

```
createUser("user2", "fullname2", "user2@example.com", "password", "JIRA Internal Directory");
```

## See also

> Macro (contentbylabel)