Looks up a specific user in a user source, by username. The full User object is returned except for the user's password.
This scripting function has no Client Permission restrictions.
String userSource - The name of the user source to search for the user in. Can be a blank string to use the Vision Client's default user source.
String username - The username of the user to search for.
Gateway, Vision Client, Perspective Session
The "User" object that is returned contains all of the information about that user, except for the user's password. You can access most of the basic user properties via a call to "get" or "getOrDefault" which returns a default value if the requested item is not present. For example:
...will return that user's schedule, or the value of "Always" if no schedule has been set as that is the default schedule. The following are the various values you may use in this manner:
In addition to these properties, the user object has other methods on it to retrieve more information:
system user getUser, user.getUser