JSON API » people » people/list

Gets the fields of all people in a given customer.

Input parameters

Requires authentication and the user role privilege.

NameTypeDescriptionRequiredDefault value
auth_usernameStringAuthentication username.Yes
auth_passwordStringAuthentication password.Yes
countInteger1 to return a count, 0 to return full data.No0
customerIntegerID of customer to get people for.NoCustomer of authentication user.
descendingInteger1 to sort descending, 0 not to.No0
limitIntegerThe maximum results to return. 0 for all.No0
offsetIntegerThe result to start at. 0 for the first.No0
pagesInteger1 to return a reduced set of data for generating the pages select box, 0 to return full data.No0
sortStringField to sort by. "forename", "fullname", "surname", or "username".No"username"
zohocrmInteger1 to only return people with Zoho CRM enabled, 0 for all people.No0

Responses

CodeDescription
200Success.
400Invalid input parameters specified. Check the key and message fields for more details.
401The authentication details provided are invalid.
402Your role does not allow this.

Data returned

An array of fields, corresponding to the rows of the people table in the database. Passwords are not included.

Example: With required parameters

http://enswitch.example.com/api/json/people/list/?auth_username=user;auth_password=password

{ "responses":[ { "code":"200", "key":"", "message":"OK" } ], "data":[ { "id":1, "username":"user1@example.com", ... }, { "id":2, "username":"user2@example.com", ... }, ] }

Change history

VersionChanges
4.4zohocrm parameter added.
3.13Function added.