users

Arguments

ArgumentTypeRequiredDefaultDescription
customer_account_idStringNo

If you are a 3PL you can specify one of your customer's account

searchStringNo

Text search on first name, last name, or email

default_warehouse_idStringNo

Only include users with this default warehouse id

is_activeBooleanNo

Only include users with this app user active status

is_developerBooleanNo

Filter users by developer status

analyzeBooleanNo

If true, the query will only be analyzed (cost estimated) without executing it.

Return Type

UsersQueryResult

Query

query users(
  $customer_account_id: String,
  $search: String,
  $default_warehouse_id: String,
  $is_active: Boolean,
  $is_developer: Boolean,
  $analyze: Boolean
) {
  users(
    customer_account_id: $customer_account_id,
    search: $search,
    default_warehouse_id: $default_warehouse_id,
    is_active: $is_active,
    is_developer: $is_developer,
    analyze: $analyze
  ) {
    request_id
    complexity
    data {
      ...UserConnectionFragment
    }
  }
}

Variables

{
  "customer_account_id": "abc123",
  "search": "abc123",
  "default_warehouse_id": "abc123",
  "is_active": true,
  "is_developer": true,
  "analyze": true
}

Response

{
  "data": {
    "users": {
      "request_id": "abc123",
      "complexity": 987,
      "data": UserConnection
    }
  }
}