Top | Previous | Next |
system.user.getUsers |
Description Retrieves the list of users in a specific user source. The "User" objects that are returned contain 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:
user.getOrDefault(User.Schedule)
...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:
Syntax system.user.getUsers(userSource) Parameters String userSource - The name of the user source to find the users in. Returns List - A List of User objects. Scope All Examples This example will print the first and last name of all users, using the default datasource:
users = system.user.getUsers("") for user in users: print user.get(user.FirstName) + " " + user.get(user.LastName)
|