> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Enroll User

Enroll a user and send them an enrollment email that expires after `Valid Seconds` seconds.

**Note**: This action requires the `Grant resource - Read` API permission.

> [!NOTE]
>
> External Documentation
>
> To learn more, visit the [Duo documentation](https://duo.com/docs/adminapi#enroll-user).

## Basic Parameters

| Parameter | Description |
| - | - |
| Email | The email address of the user to enroll. |
| Username | The user name (or username alias) of the user to enroll. |

## Advanced Parameters

| Parameter | Description |
| - | - |
| Valid Seconds | The number of seconds the enrollment code should remain valid. Defaults to `2592000` (30 days). |

## Example Output

```json theme={"dark"}
{
	"response": "ba6e8bb687017eff",
	"stat": "OK"
}
```
