# Create Organizational Unit

> `UiPath.ActiveDirectoryDomainServices.Activities.CreateOrganizationalUnit`

`UiPath.ActiveDirectoryDomainServices.Activities.CreateOrganizationalUnit`

## Description

Creates a new Organizational Unit in the directory.

## Project compatibility

Windows - Legacy | Windows

## Configuration

### Common

* **Display Name** - The display name of the activity.

### Input

* **Common Name** - The common name of the new Organizational Unit.
* **Location** - Specifies the name of the parent entry for the newly created Organizational Unit.
* **Properties** - A DataTable object. It contains two columns, the first one representing the property name and the second one its value.
* **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** - The distinguished name of the newly created Organizational Unit.
