---
url: /process-functions/security-currentusername.md
description: Retrieves the username of the current user.
---

# security.currentUserName

Retrieves the username of the current user.

```js
let username = security.currentUserName();
```

#### Parameters

None
