system.user.getUsers
This function is used in Python Scripting.
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.
Client Permission Restrictionsβ
This scripting function has no Client Permission restrictions.
Syntaxβ
system.user.getUsers(userSource)
Parametersβ
| Type | Parameter | Description |
|---|---|---|
| String | userSource | The name of the user source to find the users in. |
Returnsβ
List - A List of User objects.
Scopeβ
Gateway, Vision Client, Perspective Session
Code Examplesβ
Example #1
# 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)