---
title: "Get a user's details"
method: GET
path: "/moderation/chat/user/{userId}"
tags: ["Chat"]
---

# Get a user's details

`GET /moderation/chat/user/{userId}`

## Path parameters

- `userId` string, required

## Query parameters

- `accessToken` string, required

## Response `200`

User information

- ModerationUserDetails
  - `user` User
    - `createdAt` string
    - `disabledAt` string
    - `nameChangedAt` string
    - `id` string
    - `displayName` string
    - `previousNames` string[]
    - `scopes` string[]
    - `authProviders` string[] — Friendly names of the external auth methods this user signed in with (e.g. IndieAuth, Fediverse, or a plugin slug). Absent for anonymous users.
    - `displayColor` integer
    - `isBot` boolean
    - `authenticated` boolean
  - `connectedClients` ModerationConnectedClient[]
    - `connectedAt` string, date-time
    - `userAgent` string
    - `geo` string
    - `id` integer
    - `messageCount` integer
  - `messages` UserMessage[]
    - `timestamp` string
    - `type` string
    - `id` string
    - `user` User
      - `createdAt` string
      - `disabledAt` string
      - `nameChangedAt` string
      - `id` string
      - `displayName` string
      - `previousNames` string[]
      - `scopes` string[]
      - `authProviders` string[] — Friendly names of the external auth methods this user signed in with (e.g. IndieAuth, Fediverse, or a plugin slug). Absent for anonymous users.
      - `displayColor` integer
      - `isBot` boolean
      - `authenticated` boolean
    - `hiddenAt` string
    - `clientId` integer
    - `body` string

## Other responses

- `401` — Unauthorized
- `404` — Not found
- `default` — Unexpected error

---

[API](https://skmtc.net/owncast/apis/owncast-apis.md) · [All operations](https://skmtc.net/owncast/apis/owncast-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/owncast/owncast-apis/versions/dc1c42f7f8f6/schema)
