# WinUser.AddUserResult

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

```java
public static class AddUserResult
```

The class of the objects returned by [`WinUser.addUser`](WinUser.md#adduser-string-string-string-groupcreationmode-string-string).

## Methods

| Signature | Returns | Description |
|---|---|---|
| [`getType()`](#gettype) | `AddUserResultType` | The result type (success / specific errors) |
| [`getUserSid()`](#getusersid) | `String` | The SID (Security Identifier) of the created user in String form. |
| [`getGroupSid()`](#getgroupsid) | `String` | The SID (Security Identifier) of the used group in String form. |
| [`isGroupCreated()`](#isgroupcreated) | `boolean` | Check if the local group was newly created |
| [`toString()`](#tostring) | `String` |  |

### getType()

```java
public AddUserResultType getType()
```

The result type (success / specific errors)


**Returns:** the result type

### getUserSid()

```java
public String getUserSid()
```

The SID (Security Identifier) of the created user in String form. This can be used to unambiguously specify the created user
for actions such as 'Install a service' or 'Add Windows file rights'.


**Returns:** the user SID in String form

### getGroupSid()

```java
public String getGroupSid()
```

The SID (Security Identifier) of the used group in String form. This can be used to unambiguously specify the created group
for actions such as 'Add Windows file rights'.


**Returns:** the group sid in String form

### isGroupCreated()

```java
public boolean isGroupCreated()
```

Check if the local group was newly created


**Returns:** `true` if the group was created

### toString()

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

