---
title: "GET /users/{id}/"
method: GET
path: "/users/{id}/"
tags: ["users"]
---

# GET /users/{id}/

`GET /users/{id}/`

Retrieve a user by their id

## Path parameters

- `id` integer, required

## Response `200`

Return a user.

- UserDetail
  - `id` integer, required
  - `username` string, required — Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.
  - `email` string, email
  - `first_name` string
  - `last_name` string
  - `is_superuser` boolean — Designates that this user has all permissions without explicitly assigning them.
  - `roles` RoleRef[], required
    - `id` string, uuid, required
    - `name` string, required
  - `created_at` string, date-time, required
  - `modified_at` string, date-time, required

## Changes

- **2023-05-19** `f84d9240fdf2` — 2 info
  - the endpoint scheme security `cookieAuth` was removed from the API
  - added the optional property `is_superuser` to the response with the `200` status
- **2023-04-25** `62d33b790834` — 1 breaking, 1 warning, 4 info
  - removed the required property `resource` from the response with the `200` status
  - removed the optional property `is_superuser` from the response with the `200` status
  - the endpoint scheme security `EDAJWTAuthentication` was removed from the API
  - the endpoint scheme security `jwtAuth` was removed from the API
  - …2 more

[Change history](https://skmtc.dev/ansible/apis/event-driven-ansible-api/changes/users/:id/get.md)

---

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