---
title: "getUserFromEvent"
canonical: "https://support.appfire.com/space/PSJC/491002360/getUserFromEvent"
format: markdown
---
> Macro (aura-html)


## Description

> Macro (excerpt)
> 
> Retrieves a structure containing information about an user that has been created or updated.

Retrieves a structure containing information about an user that has been created or updated.  
The function is a combination of the server functions for the user events (getNewUserFromEvent / getOldUserFromEvent).

|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | getUserFromEvent() | **Package** |  |
| **Alias** |  | **Pkg Usage** |  |

## Return Type

**[JUser](https://appfire.atlassian.net/wiki/spaces/PSJC/pages/435028065)**

## Example

```javascript
logPrint("INFO", "Result of listener: " + getUserFromEvent());
```

The result is a structure containing the user key, user name, the display name and the email of the user.

## See also

> Macro (contentbylabel)