# Create Lifecycle Policy

> `UiPath.AzureAD.Activities.AzureADCreateLifecyclePolicy`

`UiPath.AzureAD.Activities.AzureADCreateLifecyclePolicy`

## Description

Creates a lifecycle policy for an Office 365 group.

## Project Compatibility

Windows - Legacy | Windows | Cross-platform

## Configuration

### Common

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

### Input

* **AlternateNotificationEmails** - Enables the email addresses to send notifications for groups with no owners. Multiple email addresses should be separated by a semicolon `;`. This field supports only strings and `String` variables.
* **GroupLifetimeInDays** - Establishes the number of days before a group expires and needs to be renewed.
* **ManagedGroupTypes** - Specifies the group type for which the expiration policy applies. The possible values are **All**, **Selected**, and **None**. The default value is **Selected**.

### Misc

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

### Output

* **LifecyclePolicy** - Provides details about the newly created lifecycle policy.

:::note
Only one expiration policy can be configured for Office 365 groups, on a tenant. Click [here](https://docs.microsoft.com/en-us/azure/active-directory/users-groups-roles/groups-lifecycle) and [here](https://docs.microsoft.com/en-us/office365/admin/create-groups/office-365-groups-expiration-policy?view=o365-worldwide) for more information.
:::

## Permissions

This activity requires one of the following permissions to be set:

* **Delegated** - Directory.ReadWrite.All
* **Application** - Directory.ReadWrite.All
