---
title: "Get a user"
method: GET
path: "/api/ee/user"
tags: ["Enterprise (EE)"]
---

# Get a user

`GET /api/ee/user`

Fetches details for a single organization member by `userId`. Only organization owners can access this endpoint.

## Query parameters

- `userId` string, required — The ID of the user to retrieve.

## Response `200`

User details.

- PublicEeUser
  - `id` string, required
  - `name` string, nullable, required
  - `email` string, required
  - `role` 'OWNER' | 'MEMBER', required
  - `suspendedAt` string, date-time, nullable, required
  - `createdAt` string, date-time, required
  - `updatedAt` string, date-time, required
  - `lastActivityAt` string, date-time, nullable, required

## Other responses

- `400` — Missing userId parameter.
- `403` — Insufficient permissions or entitlement not enabled.
- `404` — User is not a member of this organization.
- `500` — Unexpected failure.

---

[API](https://skmtc.dev/sourcebot/apis/sourcebot-public-api.md) · [All operations](https://skmtc.dev/sourcebot/apis/sourcebot-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/sourcebot/sourcebot-public-api/revisions/b0ed96fb7103/schema)
