Skip to main content

User

Represents a user in the Flyte platform.

Attributes

AttributeTypeDescription
pb2UserInfoResponseStores the protobuf representation of the user information, used to access various user details.

Methods


get()

@classmethod
def get() - > [User](user.md?sid=flyte_remote__user_user)

Fetches information about the currently logged in user.

Returns

TypeDescription
[User](user.md?sid=flyte_remote__user_user)A User object containing details about the user.

subject()

@classmethod
def subject() - > str

Get the subject identifier of the user.

Returns

TypeDescription
strThe subject identifier of the user.

name()

@classmethod
def name() - > str

Get the name of the user.

Returns

TypeDescription
strThe name of the user.