# Create Group

> `UiPath.ActiveDirectoryDomainServices.Activities.CreateGroup`

`UiPath.ActiveDirectoryDomainServices.Activities.CreateGroup`

## Description

Creates a new group 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 group.
* **Location** - Specifies the name of the parent entry for the newly created group.
* **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 group.
* **Type** - Specifies the type of the group. The default value is **GlobalSecurity**.
* **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 group.
