---
title: "List affected users"
method: GET
path: "/projects/{project_id}/faults/{fault_id}/affected_users"
tags: ["Faults"]
---

# List affected users

`GET /projects/{project_id}/faults/{fault_id}/affected_users`

## Request

- Base URL: `https://app.honeybadger.io/v3`
- URL: `https://app.honeybadger.io/v3/projects/{project_id}/faults/{fault_id}/affected_users`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/honeybadger/apis/honeybadger-api/docs/projects/:project_id/faults/:fault_id/affected_users/get.ts> (a function with typed inputs; its response is checked against the schema)

Returns the 500 users a fault affected most, ranked by notice count. With `q`, only matching notices count.

## Path parameters

- `project_id` string, required
- `fault_id` string, required

## Query parameters

- `q` string

## Response `200`

Success

- object
  - `data` AffectedUser[], required
    - `user` string, required: The affected user exactly as the reporting client identified them: not a Honeybadger user ID, and not necessarily an email.
    - `count` integer, required: How many times this user was seen on the fault
  - `meta` ResponseMeta
    - `request_id` string: Unique identifier for the request, for correlating with support

## Other responses

- `301`: This fault was merged into another fault. Location is the same resource on the fault it was merged into: `…/faults/<survivor>` for the fault, or the same subresource path and query for occurrences, affected users and notices. Only reads redirect; writes get a 409 `fault_merged`.
- `401`: The credential is missing, invalid, expired or revoked (`unauthorized`), or was sent in a way v3 doesn't accept (see the examples).
- `403`: The credential isn't allowed to do this. `error.code` says why. An account or project the credential doesn't cover is 404 `not_found`, not 403.
- `404`: Resource not found
- `422`: No path names the account, so the API token has to. This is returned when the token covers more than one account and the account a request applies to cannot be determined. Use a token bound to a single account.

---

[API](https://skmtc.dev/honeybadger/apis/honeybadger-api.md) - [All operations](https://skmtc.dev/honeybadger/apis/honeybadger-api/llms.txt) - [OpenAPI document](https://skmtc.dev/honeybadger/apis/honeybadger-api/revisions/cbcff53f2c8a?raw)
