---
title: "Get Current User Info"
method: GET
path: "/user_info"
---

# Get Current User Info

`GET /user_info`

Return information about the current user.

Args:
    user (Annotated[User, Depends): user dependency, handled by `get_current_user`.

Returns:
    UserPublic: public information about the current user.

## Response `200`

Successful Response

- UserPublic — The object to handle public user information.
  - `username` string, required
  - `id` integer, required
  - `role` 'guest' | 'dm' | 'analyst' | 'admin', required — Possible user roles.
  - `group_ids` integer[], nullable, required

## Changes

- **2026-07-17** `c24fa4e23380` — 1 breaking, 2 info
  - removed the required property `group` from the response with the `200` status
  - the endpoint scheme security `APIKeyCookie` was added to the API
  - added the required property `group_ids` to the response with the `200` status
- **2025-05-20** `bbcc40488a72` — 1 breaking, 2 info
  - removed the required property `group_ids` from the response with the `200` status
  - the endpoint scheme security `APIKeyCookie` was removed from the API
  - added the required property `group` to the response with the `200` status

[Change history](https://skmtc.dev/industrial-optimization-group/apis/desdeo-fast-api/changes/user_info/get.md)

---

[API](https://skmtc.dev/industrial-optimization-group/apis/desdeo-fast-api.md) · [All operations](https://skmtc.dev/industrial-optimization-group/apis/desdeo-fast-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/industrial-optimization-group/desdeo-fast-api/revisions/c24fa4e23380/schema)
