userdata(U;K)

Returns a scalar value of information about a user based on a key. The key represents a piece of data stored in a dictionary that contains information about the UID.

Syntax

userdata(U;K)

Input

Argument Type Description
U text The user ID about which you would like information
Note: The user ID passed to U must be the user with the current session. No one may access user data other than that of the current ID.
K text The key represents a specific piece of information stored in the data structure that contains information about the UID.

Keys

The following values may be provided to the K argument of the userdata(U;K) function.

acc_condense
acode
addts
adduser
api
autocomment
ccts
city
combo
company
compid
compression
country
data_grid
disk_used
displayh
displayw
ditto
dormantmin
down_eor
down_last
email
emaillist
excel_dl
expiredate
favorites
first
focus
ftp
guiversion
height
inactive
inf_to_na
inf2na
inf2naold
ip
l_cols_n
last
lastlogts
macromach
macropath
maxdown
maxrows
maxrows_blk
maxrows_slave
mi
navpanel
nestmacro
nonav
oe_wrap
phone
priority
prof_pic
URL to the user's profile picture

(Available as of version 10.15)

profess
pwdate
region_fmt
s_res_n
sb_type
servers
sex
shortcut
showids
size
sortcols
splitattr
splitexpr
state
street
t_breaks_n
t_res_n
tab_condense
timeout
timezone
totdisk
tstatrestrict
uid
uploadmach
uploadpath
upts
upuser
upversion
useclink
version
width
wsaccum
wsslave
wsslaves
x_cbreaks_n
x_rbreaks_n
yearborn
zip

Return Value

Returns the user information of the UID provided in the U argument according to the key passed to the K argument.

If U is omitted, the default behavior is to return data for the current UID.

Example

The following example creates a column named results that contains the email address associated with the current UID.

<base table="default.lonely"/>
<willbe name="results" value="userdata(;'email')"/>
<colord cols="results"/>

Additional Information

  • If placed in a vector expression, this function returns a vector of a single value according to the key passed to K.