# Delete User

> `UiPath.AzureActiveDirectory.Activities.AzureADDeleteUser`

`UiPath.AzureActiveDirectory.Activities.AzureADDeleteUser`

## Description

Deletes a user from Azure Active Directory.

## Project Compatibility

Windows - Legacy | Windows | Cross-platform

## Configuration

### Common

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

### Input

* **UserIdOrUpn** - Establishes the User Principal Name (UPN) or the user's object ID. This field supports only strings and `String` variables.

### Misc

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

## Permissions

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

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

:::note
Deleted users can still be viewed, restored, or permanently deleted for 30 days from the Microsoft Entra admin center. More details on this topic can be found [here](https://learn.microsoft.com/en-us/entra/fundamentals/users-restore).
:::
