---
url: /process-functions/security-resetuserpassword.md
description: Emails a user a link to reset their password.
---

# security.resetUserPassword

Emails a user a link to reset their password.

```js
security.resetUserPassword(userId)
```

## Parameters

| Parameter | Type | Description |
|---|---|---|
| `userId` | `number` | The id of the user. |

## Returns

`true` if the email was sent, otherwise `false`.

## Examples

```js
const success = security.resetUserPassword(1234); // true if successful
```
