User
Represents a user in the Flyte platform.
Attributes
| Attribute | Type | Description |
|---|---|---|
| pb2 | UserInfoResponse | Stores 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
| 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 subject identifier of the user. |
name()
@classmethod
def name() - > str
Get the name of the user.
Returns
| Type | Description |
|---|---|
str | The name of the user. |