Permissions to Run the Request
Account Owner, Account Administrators, Department Administrators, or custom roles.
Department Administrators and users with a custom role can get lists of the users belonging to the departments they manage and their sub-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.