User
Represents a user in the Flyte platform.
Attributes
| Attribute | Type | Description |
|---|---|---|
| pb2 | UserInfoResponse | The underlying protobuf message containing the raw user information response from the Flyte identity service. |
Constructor
Signature
def User(
pb2: UserInfoResponse
) - > null
Parameters
| Name | Type | Description |
|---|---|---|
| pb2 | UserInfoResponse | The 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
| Type | Description |
|---|---|
[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
| Type | Description |
|---|---|
str | The unique subject identifier string for the user. |
name()
@classmethod
def name() - > str
Get the name of the user.
Returns
| Type | Description |
|---|---|
str | The full name or display name of the user. |