Search…
Resources
Related Links
userName
To return the username of a user
The function tells you the username of the current or a user.
This refers to the display name that is on file in the profile of the user.

Syntax

userName()
userName(user)

Return

string

Examples

userName() To return the username of the current user.
userName()
Result: Steve Rogers (if Captain America is processing the function and has this on file in his profile)
​
userName(myUser) To return the username of a given user.
Choose the field "User" and select "Steve Rogers".
userName(User)
Result: Steve Rogers (if Captain America is selected in the field User and that is the display name on file)

See also

​user, which returns the current or a specific user.
​userFullName, which returns the full name of a user.
Export as PDF
Copy link