# GET /api/v1/businesses/users

> List business users

- **Tag:** businesses
- **Operation ID:** `list_business_users_api_v1_businesses_users_get`

## Description

Get users associated with a business, optionally including advisory firm users.

## Authentication

Bearer token in `Authorization` header.
Required header: `x-business-id: <business uuid>`.

## Parameters

- `include_advisory_users` (query, boolean, optional) — Include users from the parent advisory firm if one exists.
- `cursor` (query, string, optional) — Cursor for pagination
- `limit` (query, integer, optional) — Pagination limit
- `direction` (query, string, optional) — Pagination direction: 'next' or 'prev'
- `include_total_count` (query, boolean, optional) — Whether to include total count (expensive - avoid if possible)
- `sort_by` (query, string, optional) — Column name to sort by (e.g. 'created_at', 'amount', 'name'). When changing sort, reset cursor to None.
- `descending` (query, boolean, optional) — Sort direction: true for descending (newest/largest first), false for ascending

## Responses

### 200 — Successful Response

Schema: `AssociatedUserCursorListResponse`

- `items` (array · AssociatedUserResponse · required) → `AssociatedUserResponse` — List of items
  - `email` (string · email · required) — User email address (unique identifier).
  - `first_name` (string) — User's first name.
  - `last_name` (string) — User's last name.
  - `photo_url` (string) — URL to user's profile photo.
  - `onboarded` (boolean) — Whether user has completed onboarding.
  - `props` (object) — Additional user properties/settings.
  - `id` (string · required) — User UUID.
  - `created_at` (string · date-time · required) — Account creation timestamp.
  - `updated_at` (string · date-time · required) — Last profile update timestamp.
  - `firm_ids` (array · string) — Advisory firm UUIDs the user belongs to.
  - `role` (Role · required) → `Role` — Role: owner, admin, member, or viewer
  - `source` (UserSource · required) → `UserSource` — Source of association: business_user (direct) or advisor_user (via advisory firm).
- `total` (integer) — Total number of items (null when not calculated for performance)
- `limit` (integer) — Pagination limit
- `next_cursor` (string) — Cursor for next page
- `prev_cursor` (string) — Cursor for previous page
- `has_next` (boolean · required) — Whether there are more items
- `has_prev` (boolean · required) — Whether there are previous items

### 422 — Validation Error

Schema: `HTTPValidationError`

- `detail` (array · ValidationError) → `ValidationError`
  - `loc` (array · string | integer · required)
  - `msg` (string · required)
  - `type` (string · required)
  - `input` (object)
  - `ctx` (object)

## Code samples

### cURL

```bash
curl -X GET 'https://api.ondayzero.com/api/v1/businesses/users' \
  -H 'Authorization: Bearer dz_your_token' \
  -H 'x-business-id: YOUR_BUSINESS_ID'
```

### JavaScript

```javascript
const response = await fetch('https://api.ondayzero.com/api/v1/businesses/users', {
  method: 'GET',
  headers: {
    Authorization: 'Bearer dz_your_token',
    'x-business-id': 'YOUR_BUSINESS_ID',
  },
});
const data = await response.json();
```

### Python

```python
import httpx

headers = {
    "Authorization": "Bearer dz_your_token",
    "x-business-id": "YOUR_BUSINESS_ID",
}

response = httpx.get("https://api.ondayzero.com/api/v1/businesses/users", headers=headers)
data = response.json()
```

## See also

- HTML version: https://www.ondayzero.com/docs/reference/businesses/list-business-users
- OpenAPI slice: https://www.ondayzero.com/docs/reference/businesses/list-business-users/openapi.json
- Other endpoints in **businesses**: https://www.ondayzero.com/docs/reference/businesses
