You can obtain the list of users with the getUsers method.
Permissions to run the request: Account Owner, Account Administrators, Department Administrators.
Department Administrators can get a list of users belonging only to the department they manage and its daughter departments.
|credentials (required)||credentials||Read the description of the Credentials object.|
|groupId (optional)||string||If specified, this method selects users belonging to a specific group.|
|departmentId (optional)||int||If specified, this method selects users belonging to a specific department.|
After the request has been completed, the system returns an object with the following properties:
|users||UserProfile||An array of user profiles. The UserProfile object has the same properties as the getUserProfile method.|
The user doesn't have enough permissions to handle the request.
For example, Department Administrator can't get a list of users from a department they don't manage.