List all users

List all existing users of the account, paged with limit and offset. Narrow the list with search (part of a username, name or email), usernames, ids, groups or a filter on username, first name, last name, email or phone; every parameter is optional. The list is not narrowed by the caller's user group. Records are in the users key and meta.total counts every match.

{
  "users": [
    {
      "username": "admin",
      "firstName": "John",
      "lastName": "Doe",
      "email": "[email protected]",
      "phone": "",
      "signature": null,
      "links": {
        "lists": "https://:account.api-us1.com/api/3/users/1/lists",
        "userGroup": "https://:account.api-us1.com/api/3/users/1/userGroup",
        "dealGroupTotals": "https://:account.api-us1.com/api/3/users/1/dealGroupTotals",
        "dealGroupUsers": "https://:account.api-us1.com/api/3/users/1/dealGroupUsers",
        "configs": "https://:account.api-us1.com/api/3/users/1/configs"
      },
      "id": "1"
    },
    {
      "username": "janedoe",
      "firstName": "Jane",
      "lastName": "Doe",
      "email": "[email protected]",
      "phone": "",
      "signature": null,
      "links": {
        "lists": "https://:account.api-us1.com/api/3/users/5/lists",
        "userGroup": "https://:account.api-us1.com/api/3/users/5/userGroup",
        "dealGroupTotals": "https://:account.api-us1.com/api/3/users/5/dealGroupTotals",
        "dealGroupUsers": "https://:account.api-us1.com/api/3/users/5/dealGroupUsers",
        "configs": "https://:account.api-us1.com/api/3/users/5/configs"
      },
      "id": "5"
    }
  ],
  "meta": {
    "total": "2"
  }
}
Query Params
integer
≤ 100
Defaults to 20

Number of users to return, at most 100. Defaults to 20.

integer
Defaults to 0

Number of users to skip. Defaults to 0.

string

Comma-separated user ids to return; when sent, the page size is the number of ids given.

Keeps the users whose username, first name, last name, first and last name together (as in Jane Doe) or email contains this text. Partial text matches, and the characters % and _ match themselves. search=0 or an empty value applies no filter.

string

Comma-separated usernames; keeps the users whose username is exactly one of them.

string

Keeps the users whose username contains this text.

string

Keeps the users whose first name is exactly this. filters[first_name] is accepted as well.

string

Keeps the users whose last name is exactly this. filters[last_name] is accepted as well.

string

Keeps the users whose email is exactly this.

string

Keeps the users whose phone contains this text.

groups[]
array of integers

Keeps the users who belong to any of these user group ids; repeat it to send several.

groups[]
string
enum

owner keeps the users who own a deal; task_assignee keeps the users who have a deal task assigned to them.

Allowed:
integer

Keeps the users who can access this deal group.

string
enum

Sorts by username. Any other filterable field sorts the same way, as orders[first_name], orders[last_name], orders[email] and orders[phone]; these keys are spelled with underscores, unlike the filters. Any other order key is ignored, or rejected with a 400 when the request sends X-AC-Strict-Params: 1. See also orders[selected_ids][].

Allowed:
orders[selected_ids][]
array of integers

Used with groups[]: lists the users with these ids first and the rest by first name. Repeat it to send several.

orders[selected_ids][]
Headers
string
enum

Send 1 to have the request rejected with a 400 that names any filters or orders key this endpoint does not honour, instead of ignoring it. The response then carries X-AC-Strict-Params: enforced.

Allowed:
Responses

Language
Credentials
Header
URL
LoadingLoading…
Response
Choose an example:
application/json