Skip to main content

User

Represents a user in the Flyte platform.

Attributes

AttributeTypeDescription
pb2UserInfoResponseThe underlying protobuf message containing the raw user information response from the Flyte identity service.

Constructor

Signature

def User(
pb2: UserInfoResponse
) - > null

Parameters

NameTypeDescription
pb2UserInfoResponseThe protobuf response object containing user information.

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 unique subject identifier string for the user.

name()

@classmethod
def name() - > str

Get the name of the user.

Returns

TypeDescription
strThe full name or display name of the user.