1. Packages
  2. Harness
  3. API Docs
  4. platform
  5. getCurrentUser
Harness v0.1.2 published on Friday, Jul 19, 2024 by Pulumi

harness.platform.getCurrentUser

Explore with Pulumi AI

harness logo
Harness v0.1.2 published on Friday, Jul 19, 2024 by Pulumi

    Data source for retrieving the current user based on the API key.

    Using getCurrentUser

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getCurrentUser(opts?: InvokeOptions): Promise<GetCurrentUserResult>
    function getCurrentUserOutput(opts?: InvokeOptions): Output<GetCurrentUserResult>
    def get_current_user(opts: Optional[InvokeOptions] = None) -> GetCurrentUserResult
    def get_current_user_output(opts: Optional[InvokeOptions] = None) -> Output[GetCurrentUserResult]
    func GetCurrentUser(ctx *Context, opts ...InvokeOption) (*GetCurrentUserResult, error)
    func GetCurrentUserOutput(ctx *Context, opts ...InvokeOption) GetCurrentUserResultOutput

    > Note: This function is named GetCurrentUser in the Go SDK.

    public static class GetCurrentUser 
    {
        public static Task<GetCurrentUserResult> InvokeAsync(InvokeOptions? opts = null)
        public static Output<GetCurrentUserResult> Invoke(InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCurrentUserResult> getCurrentUser(InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: harness:platform/getCurrentUser:getCurrentUser
      arguments:
        # arguments dictionary

    getCurrentUser Result

    The following output properties are available:

    Admin bool
    Whether the user is an administrator.
    BillingFrequency string
    Billing frequency of the user.
    DefaultAccountId string
    Default account ID of the user.
    Edition string
    Edition of the platform being used.
    Email string
    Email address of the user.
    EmailVerified bool
    Whether the user's email address has been verified.
    Id string
    The provider-assigned unique ID for this managed resource.
    Intent string
    Intent of the user.
    IsTwoFactorAuthEnabled bool
    Whether 2FA is enabled for the user.
    Locked bool
    Whether or not the user account is locked.
    Name string
    Name of the user.
    SignupAction string
    Signup action of the user.
    Token string
    Token used to authenticate the user.
    Uuid string
    Unique identifier of the user.
    Admin bool
    Whether the user is an administrator.
    BillingFrequency string
    Billing frequency of the user.
    DefaultAccountId string
    Default account ID of the user.
    Edition string
    Edition of the platform being used.
    Email string
    Email address of the user.
    EmailVerified bool
    Whether the user's email address has been verified.
    Id string
    The provider-assigned unique ID for this managed resource.
    Intent string
    Intent of the user.
    IsTwoFactorAuthEnabled bool
    Whether 2FA is enabled for the user.
    Locked bool
    Whether or not the user account is locked.
    Name string
    Name of the user.
    SignupAction string
    Signup action of the user.
    Token string
    Token used to authenticate the user.
    Uuid string
    Unique identifier of the user.
    admin Boolean
    Whether the user is an administrator.
    billingFrequency String
    Billing frequency of the user.
    defaultAccountId String
    Default account ID of the user.
    edition String
    Edition of the platform being used.
    email String
    Email address of the user.
    emailVerified Boolean
    Whether the user's email address has been verified.
    id String
    The provider-assigned unique ID for this managed resource.
    intent String
    Intent of the user.
    isTwoFactorAuthEnabled Boolean
    Whether 2FA is enabled for the user.
    locked Boolean
    Whether or not the user account is locked.
    name String
    Name of the user.
    signupAction String
    Signup action of the user.
    token String
    Token used to authenticate the user.
    uuid String
    Unique identifier of the user.
    admin boolean
    Whether the user is an administrator.
    billingFrequency string
    Billing frequency of the user.
    defaultAccountId string
    Default account ID of the user.
    edition string
    Edition of the platform being used.
    email string
    Email address of the user.
    emailVerified boolean
    Whether the user's email address has been verified.
    id string
    The provider-assigned unique ID for this managed resource.
    intent string
    Intent of the user.
    isTwoFactorAuthEnabled boolean
    Whether 2FA is enabled for the user.
    locked boolean
    Whether or not the user account is locked.
    name string
    Name of the user.
    signupAction string
    Signup action of the user.
    token string
    Token used to authenticate the user.
    uuid string
    Unique identifier of the user.
    admin bool
    Whether the user is an administrator.
    billing_frequency str
    Billing frequency of the user.
    default_account_id str
    Default account ID of the user.
    edition str
    Edition of the platform being used.
    email str
    Email address of the user.
    email_verified bool
    Whether the user's email address has been verified.
    id str
    The provider-assigned unique ID for this managed resource.
    intent str
    Intent of the user.
    is_two_factor_auth_enabled bool
    Whether 2FA is enabled for the user.
    locked bool
    Whether or not the user account is locked.
    name str
    Name of the user.
    signup_action str
    Signup action of the user.
    token str
    Token used to authenticate the user.
    uuid str
    Unique identifier of the user.
    admin Boolean
    Whether the user is an administrator.
    billingFrequency String
    Billing frequency of the user.
    defaultAccountId String
    Default account ID of the user.
    edition String
    Edition of the platform being used.
    email String
    Email address of the user.
    emailVerified Boolean
    Whether the user's email address has been verified.
    id String
    The provider-assigned unique ID for this managed resource.
    intent String
    Intent of the user.
    isTwoFactorAuthEnabled Boolean
    Whether 2FA is enabled for the user.
    locked Boolean
    Whether or not the user account is locked.
    name String
    Name of the user.
    signupAction String
    Signup action of the user.
    token String
    Token used to authenticate the user.
    uuid String
    Unique identifier of the user.

    Package Details

    Repository
    harness pulumi/pulumi-harness
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the harness Terraform Provider.
    harness logo
    Harness v0.1.2 published on Friday, Jul 19, 2024 by Pulumi