# Set User Expiration Date

> `UiPath.ActiveDirectoryDomainServices.Activities.SetUserExpirationDate`

`UiPath.ActiveDirectoryDomainServices.Activities.SetUserExpirationDate`

## Description

Sets the expiration date for a given user account.

## Project compatibility

Windows - Legacy | Windows

## Configuration

### Common

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

### Input

* **DistinguishedName** - The distinguished name of the user account.
* **ExpirationDate** - Provides the date and time when the specified user account expires.
* **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.
