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

> Macro (table-plus)
> 
> |  |  |  |  |
> | --- | --- | --- | --- |
> | **Syntax** | getUserKeysFromEmails(emails) | **Package** |  |
> | **Alias** |  | **Pkg Usage** |  |

## Description

> Macro (excerpt)
> 
> Finds the corresponding user keys for a list of email addresses.

Finds the corresponding user keys for a list of email addresses.

## Parameters

> Macro (table-plus)
> 
> | Parameter name | Type | Required | Description |
> | --- | --- | --- | --- |
> | emails | String [] | Yes | Array of email addresses. |

## Return Type

**String []**

Returns the first user found for each of specified email address.

## Example

```javascript
string[] emails = {"jdoe@example.com", "bsmith@example.com"};
string[] keys = getUserKeysFromEmails(emails);
```

## See also

> Macro (contentbylabel)