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

> Macro (table-plus)
> 
> |  |  |  |  |
> | --- | --- | --- | --- |
> | **Syntax** | currentUserName() | **Package** |  |
> | **Alias** |  | **Pkg Usage** |  |

## Description

> Macro (excerpt)
> 
> Returns the user name (login) for the user that invoked the script containing currentUserName.

Returns the user name (login) for the user that invoked the script containing currentUserName.

## Return Type

**String **

## Example

```javascript
return currentUserName();
```

## See also

> Macro (contentbylabel)