---
title: "updateUsername"
canonical: "https://support.appfire.com/space/PSCONF/15303986/updateUsername"
format: markdown
---
> Macro (aura-html)

> Macro (table-plus)
> 
> |  |  |  |  |
> | --- | --- | --- | --- |
> | **Syntax** | updateUsername(userName, newName) | **Package** |  |
> | **Alias** |  | **Pkg Usage** |  |

## Description

> Macro (excerpt)
> 
> Change the username for a user.

Change the username for a user.

## Return Type

**Boolean**

Returns "true" if the username was updated and "false" if not.

## Example

```javascript
return updateUsername("jonDoe", "jonSmith");
```

## See also

> Macro (contentbylabel)