For user facing API documentation see https://help.commcarehq.org/display/commcarepublic/Data+APIs
Bulk User Resource
First version available:
This resource is used to get basic user data in bulk, fast. This is especially useful if you need to get, say, the name and phone number of every user in your domain for a widget.
Currently the default fields returned are:
id email username first_name last_name phone_numbers
q- query string
limit- maximum number of results returned
offset- Use with
limitto paginate results
fields- restrict the fields returned to a specified set
Example query string:
This will return the first and last names and usernames for users matching the query “foo”. This request is for the third page of results (200-300)
It is simple to add more fields if there arises a significant use case.
Potential future plans: Support filtering in addition to querying. Support different types of querying. Add an order_by option