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

# security.currentUserName&#x20;

Retrieves the full name of the current user.

::: warning Deprecated
Use [`userSecurity.users.getCurrent().getName()`](/process-functions/userSecurity-user#getname) instead.
:::

```js
security.currentUserName()
```

## Returns

## Examples

```js
const userName = security.currentUserName();
```
