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

> Macro (table-plus)
> 
> |  |  |  |  |
> | --- | --- | --- | --- |
> | **Syntax** | setUserProperty(userNameOrKey, propertyKey, propertyValue) | **Package** |  |
> | **Alias** |  | **Pkg Usage** |  |

## Description

> Macro (excerpt)
> 
> Sets properties of users.

Sets properties of users.

## Parameters

> Macro (table-plus)
> 
> | Parameter name | Type | Required | Description |
> | --- | --- | --- | --- |
> | userNameOrKey | String | Yes | User name or key of a user to get property for. |
> | propertyKey | String | Yes | Key of the property. |
> | propertyValue | String | Yes | Value to set for the property. |

## Return Type

**None**

The returned value has no meaning.

## Example

```javascript
setUserProperty("jdoe", "phone", "555 322 3222");
```

## See also

> Macro (contentbylabel)