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


|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | currentUsername() | **Package** |  |
| **Alias** |  | **Pkg Usage** |  |

## Description

> Macro (excerpt)
> 
> Returns the username for the user that invoked the script containing **currentUsername**.

Returns the username for the user that invoked the script containing **currentUsername**.

## Return Type

**String**

The return value represents the **username** of the user that triggered the script. Usually a transition is executed.

## Example

```
customfield = currentUsername();
```

Result: customfield = <username of the current user>.

## See also

> Macro (contentbylabel)