Skip to main content

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

NameTypeDescription
user_iduuid.UUIDThe unique UUID of the user to be retrieved.
sessionSessionDepThe database session dependency used for executing the query.
current_userCurrentUserThe authenticated user making the request, used for authorization checks.

Response

StatusDescription
200Successfully retrieved the user details. Returns UserPublic.
403Returned when a non-superuser attempts to access a profile other than their own. Returns null.
404Returned when no user exists with the provided ID. Returns null.