---
title: "userKeyToDisplayName"
canonical: "https://support.appfire.com/space/PSJ/15486632/userKeyToDisplayName"
format: markdown
---
> Macro (aura-html)


|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | userKeyToDisplayName(userKey) | **Package** |  |
| **Alias** | accountIdToDisplayName(userKey) | **Pkg Usage** |  |

## Description

> Macro (excerpt)
> 
> Returns the display name for the provided user key.

Returns the display name for the provided user key.

## Parameters

| Parameter name | Type | Required | Description |
| --- | --- | --- | --- |
| user key | String | Yes | User key. |

## Return Type

**String**

Returns the display name

## Example

```
string displayName = userKeyToUsername("someUserKey");
```

## See also

> Macro (contentbylabel)