# Create Group

> `UiPath.MicrosoftOffice365.Activities.Groups.CreateGroup`

`UiPath.MicrosoftOffice365.Activities.Groups.CreateGroup`

## **Description**

Uses the Microsoft Graph [Create group](https://docs.microsoft.com/en-us/graph/api/group-post-groups?view=graph-rest-1.0&tabs=http) API to create a new user group.

### Scopes

This activity requires the following scopes:

* Directory.ReadWrite.All

## Project compatibility

Windows - Legacy | Windows

## **Configuration**

**Properties**

#### Common

* **DisplayName** - The display name of the activity. This property supports `String` variables and string formatted values.

#### Input

* **Group Description** - A description for the group. Maximum length: 1024 characters. This property supports `String` variables and string formatted values.
* **Group Name** - The name to display in the address book for this group. Maximum length: 256 characters. This property supports `String` variables and string formatted values.
* **Mail Nickname** - The mail alias for the group. Maximum length: 64 characters. This property supports `String` variables and string formatted values.

#### Misc

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

#### Options

* **Group Type** - The type of the groups - universal or dynamic membership. The latter may contain membership rules that automatically add or remove members from the group based on user properties. The options are **Unified** and **DynamicMembership**.
* **Mail Enabled** - If selected, the group has the added feature of a shared mailbox. This field supports Boolean values.
* **Security Enabled** - If selected, the group is created as a security group, which may be used to assign permissions to shared resources. This field supports Boolean values.

#### Output

* **Group** - The newly created group. This field supports only `Group` variables. Required if you plan to use the output data in subsequent activities. You can also use this variable as an input variable in other Group and Planner activities.
