Get Current 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.

get/user_info

Response

Successful Response

usernamestring required
idinteger required
role'guest' | 'dm' | 'analyst' | 'admin' required

Possible user roles.

group_idsinteger[] nullable required

Changes

Changed in 2 of the 2 revisions of this API.24

  • c24fa4e2338012See the full diff
    • removed the required property group from the response with the 200 status

      response-required-property-removed

    • the endpoint scheme security APIKeyCookie was added to the API

      api-security-added

    • added the required property group_ids to the response with the 200 status

      response-required-property-added

    This revision also has 14 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

  • bbcc40488a7212See the full diff
    • removed the required property group_ids from the response with the 200 status

      response-required-property-removed

    • the endpoint scheme security APIKeyCookie was removed from the API

      api-security-removed

    • added the required property group to the response with the 200 status

      response-required-property-added

    This revision also has 103 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog