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


> Macro (table-plus)
> 
> |  |  |  |  |
> | --- | --- | --- | --- |
> | **Syntax** | getUserByEmail(email) | **Package** |  |
> | **Alias** |  | **Pkg Usage** |  |

## Description

> Macro (excerpt)
> 
> Gets the user by email address.

Gets the user by email address.

## Parameters

> Macro (table-plus)
> 
> | Parameter name | Type | Required | Description |
> | --- | --- | --- | --- |
> | email | String | Yes | Email address of a user. |

## Return Type

**CUser**

Returns the first user found with the specified email address.

## Example

```javascript
CUser user = getUserByEmail("jdoe@example.com");
```


> ⚠️ If there are multiple users with the same email address, the routine does not guarantee that it will always return the same user.

## See also

> Macro (contentbylabel)