Search…
⌃K
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.
1
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.
Select Captain America in the user field Superhero.
1
userName(Superhero)
Result: Captain America
(if Captain America is selected in the Superhero field 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.