# Create User

> `UiPath.ActiveDirectoryDomainServices.Activities.CreateUser`

`UiPath.ActiveDirectoryDomainServices.Activities.CreateUser`

## Description

Creates a new user account in Active Directory.

## Project compatibility

Windows - Legacy | Windows

## Configuration

### Common

* **DisplayName** - The display name of the activity.

### Input

* **CommonName** - The common name of the new user account.
* **Enabled** - Indicates whether the new user account is enabled after being created. The default value is **True**.
* **Location** - Specifies the name of the parent entry for the newly created user account.
  :::note
  The user's default **Home folder** local path in Active Directory is set to this location. If needed, you can replace or remove the home folder path after the user is created.
  :::
* **Password** - Indicates the password for the new user account.
* **Properties** - It contains two columns, the first one representing the property name and the second one its value.
* **SAMAccountName** - Specifies the Security Accounts Manager (SAM) account name of the new user account.
* **Connection** - Establish the connection that needs to be used. There are three available options, **Auto**, **Primary**, and **Secondary**. The default option is **Auto**. When set to **Auto**, the activity tries to automatically resolve the connection from the object’s distinguished name.

### Misc

* **Private** - If selected, the values of variables and arguments are no longer logged at Verbose level.

### Output

* **DistinguishedName** - Provides the distinguished name of the newly created user account.
