UserProperty
Returns the value of a named property of a Qubes user.
Syntax
UserProperty(userLogin, propName)
userLogin = a Qubes user's login
propName = name of the user property whose value you want to retrieve
Remarks
(Qubes 9.0) Returns "" if the requested login is an empty string.
Returns #VAL! if the requested user or property does not exist.
Alias functions provide direct access to certain properties.
The following properties can be accessed:
| Name | Retrieved information | Direct alias |
| FIRSTNAME | First name | UserFirstName(userLogin) |
| LASTNAME | Last name | UserLastName(userLogin) |
| LOGIN | Login | UserLogin(userLogin) |
| MANAGER | Manager login | UserManager(userLogin) |
| Roles and positions | ||
| FUNCTIONS | List of functions (Qubes 5.4) | UserFunctions(userLogin) |
| SERVICE | Main service's name | UserService(userLogin) |
| SITE | Main site's name | UserSite(userLogin) |
| Detailed information | ||
| CONTRACT | Type of contract (temporary, permanent, etc.) | UserContract(userLogin) |
| Email address | UserEmail(userLogin) | |
| FAX | Fax number | UserFAX(userLogin) |
| GSM | Cell phone number | UserGSM(userLogin) |
| PHONE | Main site's telephone number | UserPhone(userLogin) |
Example
If you have a user named Philip Rinaudo with a login of "pr", you will get:
UserProperty("pr", "FIRSTNAME") = "Philip"UserFirstName("pr") = "Philip"UserProperty("pr", "LASTNAME") = "Rinaudo"