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


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

## Description

> Macro (excerpt)
> 
> Returns the key for the user that invoked the script containing **currentUser**.

Returns the key for the user that invoked the script containing **currentUser**.

## Return Type

**String**

The return value represents the key of the user that triggered the script. Usually transition is executed.

## Example

```
customfield = currentUser();
```

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

## See also

> Macro (contentbylabel)