---
url: /process-functions/security-currentuseremail.md
description: Retrieves the email of the current user.
---

# security.currentUserEmail&#x20;

Retrieves the email of the current user.

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

```js
security.currentUserEmail()
```

## Returns

## Examples

```js
const email = security.currentUserEmail();
```
