# CreateUserDialogHandle

Import: `import com.install4j.api.test.ui.CreateUserDialogHandle;`

```java
interface CreateUserDialogHandle extends DialogHandle
```

Typed handle for the dialog shown by the "Windows user selector" form component when its
"Create User..." button is clicked.

Reach this handle via [`Session.createUserDialog`](../session/Session.md#createuserdialog).

## Inherited from

- [DialogHandle](DialogHandle.md) — 2 methods
- [UiContainer](UiContainer.md) — 2 methods

## Methods

| Signature | Returns | Description |
|---|---|---|
| [`setUserName(String)`](#setusername-string) | `CreateUserDialogHandle` | Set the username. |
| [`setDescription(String)`](#setdescription-string) | `CreateUserDialogHandle` | Set the user description. |
| [`setGroupName(String)`](#setgroupname-string) | `CreateUserDialogHandle` | Set the group name. |
| [`setPassword(String)`](#setpassword-string) | `CreateUserDialogHandle` | Set the password. |
| [`setRepeatPassword(String)`](#setrepeatpassword-string) | `CreateUserDialogHandle` | Set the password-repeat field. |
| [`confirm()`](#confirm) | `void` | Confirm the dialog. |
| [`cancel()`](#cancel) | `void` | Cancel the dialog without creating a user. |

### setUserName(String)

```java
CreateUserDialogHandle setUserName(String name)
```

Set the username.

### setDescription(String)

```java
CreateUserDialogHandle setDescription(String description)
```

Set the user description.

### setGroupName(String)

```java
CreateUserDialogHandle setGroupName(String group)
```

Set the group name.

### setPassword(String)

```java
CreateUserDialogHandle setPassword(String password)
```

Set the password.

### setRepeatPassword(String)

```java
CreateUserDialogHandle setRepeatPassword(String password)
```

Set the password-repeat field.

### confirm()

```java
void confirm()
```

Confirm the dialog. The user-selector model receives the resulting SID and the form's
configured variable is populated when the screen completes.

### cancel()

```java
void cancel()
```

Cancel the dialog without creating a user.

