---
title: "userEmailAddress"
canonical: "https://support.appfire.com/space/PSCONF/15304518/userEmailAddress"
format: markdown
---
> Macro (aura-html)

> Macro (table-plus)
> 
> |  |  |  |  |
> | --- | --- | --- | --- |
> | **Syntax** | userEmailAddress(userNameOrKey) | **Package** |  |
> | **Alias** |  | **Pkg Usage** |  |

## Description

> Macro (excerpt)
> 
> Returns email address of the selected user. The email address may be needed to supply it to the various external systems.

Returns email address of the selected user. The email address may be needed to supply it to the various external systems.

## Parameters

> Macro (table-plus)
> 
> | Parameter name | Type | Required | Description |
> | --- | --- | --- | --- |
> | userNameOrKey | String | Yes | User name or key of a user to retrieve email for. |

## Return Type

**String**

## Examples

### Example 1

Returns: If exists, returns the email address of the jdoe user.

```javascript
userEmailAddress("jdoe");
```

### Example 2

Returns: If exists, returns the email address of the current user.

```javascript
userEmailAddress(currentUser());
```

## See also

> Macro (contentbylabel)