---
title: "admResetUserPassword"
canonical: "https://support.appfire.com/space/PSJ/15488965/admResetUserPassword"
format: markdown
---
> Macro (aura-html)


|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | admResetUserPassword(userName, newPassword) | **Package** | adm |
| **Alias** | resetUserPassword(userName, newPassword) | **Pkg Usage** | resetUserPwd(userName, newPassword) |

## Description

> Macro (excerpt)
> 
> Updates the password for a user.

Updates the password for a user.

## Parameters

| Parameter name | Type | Required | Description |
| --- | --- | --- | --- |
| userName | String | Yes | The username of user to change the password for |
| newPassword | String | Yes | The password to set |

## Return Type

**Boolean**

## Example

```
boolean result = admResetUserPassword("username","Cx8pKJCMw!");
```

## See also

> Macro (contentbylabel)