Skip to end of banner
Go to start of banner

getUserProperty

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Syntax

getUserProperty(userNameOrKey, propertyKey)

Description

Gets the specified user property.

Parameters

Parameter name

Type

Required

Description

userNameOrKey

stringYesUser name or user key to get a property for.
propertyKeystringYesKey of the property to retrieve.

Return type

string

Returns the value of the specified property. If the user does not have the property, it will return an empty string.

Example

Example 1

string customProperty = getUserProperty("jdoe", "custom.property");

Returns the value of property "custom.property" for a user "jdoe".

See also

  • No labels