GET /utils/{user_id}
Get a specific user by id.
Retrieves the profile details of a specific user by their unique identifier, subject to permission constraints.
Endpoint
GET /utils/{user_id}
Parameters
| Name | Type | Description |
|---|---|---|
| user_id | uuid.UUID | The unique UUID of the user to be retrieved. |
| session | SessionDep | The database session dependency used for executing the query. |
| current_user | CurrentUser | The authenticated user making the request, used for authorization checks. |
Response
| Status | Description |
|---|---|
| 200 | Successfully retrieved the user details. Returns UserPublic. |
| 403 | Returned when a non-superuser attempts to access a profile other than their own. Returns null. |
| 404 | Returned when no user exists with the provided ID. Returns null. |