Harness v0.5.7 published on Saturday, Mar 8, 2025 by Pulumi
harness.platform.getCurrentUser
Explore with Pulumi AI
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)
public static Output<GetCurrentUserResult> getCurrentUser(InvokeOptions options)
fn::invoke:
  function: harness:platform/getCurrentUser:getCurrentUser
  arguments:
    # arguments dictionarygetCurrentUser Result
The following output properties are available:
- Admin bool
- Whether the user is an administrator.
- BillingFrequency string
- Billing frequency of the user.
- DefaultAccount stringId 
- 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.
- IsTwo boolFactor Auth Enabled 
- 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.
- DefaultAccount stringId 
- 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.
- IsTwo boolFactor Auth Enabled 
- 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.
- defaultAccount StringId 
- 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.
- isTwo BooleanFactor Auth Enabled 
- 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.
- defaultAccount stringId 
- 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.
- isTwo booleanFactor Auth Enabled 
- 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_ strid 
- 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_ boolfactor_ auth_ enabled 
- 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.
- defaultAccount StringId 
- 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.
- isTwo BooleanFactor Auth Enabled 
- 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 harnessTerraform Provider.
