# WinUser.AddUserResultType

Import: `import com.install4j.api.windows.WinUser;`

```java
public static final enum AddUserResultType
```

The type of result returned by [`WinUser.addUser`](WinUser.md#adduser-string-string-string-groupcreationmode-string-string)

## Constants

### SUCCESS

The user creation and the optional local group creation succeeded.

### ERROR_ACCESS_DENIED

The current user has no access to the user database, or the
operation is only allowed on the primary domain controller of the domain.

### ERROR_GROUP_EXISTS

The group that should be newly created already exists.

### ERROR_GROUP_NOT_FOUND

The group that should already exist could not be found.

### ERROR_USER_EXISTS

The group that should already exist could not be found.

### ERROR_BAD_USER_NAME

The user name is invalid.

### ERROR_PASSWORD_REQUIREMENTS

The password does not meet the password policy requirements.
Check the minimum password length, password complexity, and password history requirements.

### ERROR_OTHER

Another type of error occurred during user creation.

## Methods

| Signature | Returns | Description |
|---|---|---|
| [`values()`](#values) | `AddUserResultType[]` |  |
| [`valueOf(String)`](#valueof-string) | `AddUserResultType` |  |
| [`toString()`](#tostring) | `String` |  |

### values()

```java
public static AddUserResultType[] values()
```

### valueOf(String)

```java
public static AddUserResultType valueOf(String name)
```

### toString()

```java
public String toString()
```

