---
title: "Get user by ID"
method: GET
path: "/v1/users/{id}"
tags: ["Users"]
---

# Get user by ID

`GET /v1/users/{id}`

## Request

- Base URL: `https://docs.grepr.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://docs.grepr.ai/v1/users/{id}`
- Auth: OpenID Connect (`https://grepr-prod.us.auth0.com/.well-known/openid-configuration`)

Get a user by their ID.

## Path parameters

- `id` string, required

## Response `200`

User retrieved successfully

- ReadUser
  - `email` string: The email associated with the user.
  - `id` string: The id associated with the user.
  - `name` string: The name of the user.
  - `roles` Role[], required: The roles associated with this user.
    - `builtin` boolean: Whether this is a built-in role
    - `createdAt` string, date-time: When the role was created (null for system roles)
    - `createdBy` string: Who created the role (null for system roles)
    - `description` string, required: Description of the role
    - `effect` string: The effect of this role's permissions: 'allow' or 'deny'. Defaults to 'allow' for standard roles.
    - `id` string, required: The id of the role.
    - `name` string, required: The user-facing name of the role.
    - `permissionIds` string[], required: Permission IDs assigned to this role (empty for system roles)
  - `teamIds` string[], required: The teams that this user is a member of.

## Other responses

- `401`: Unauthorized
- `403`: Unauthorized
- `404`: User not found

---

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