---
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

---

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