Harness v0.4.4 published on Tuesday, Nov 12, 2024 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)
// 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.
- Billing
Frequency string - Billing frequency of the user.
- Default
Account stringId - Default account ID of the user.
- Edition string
- Edition of the platform being used.
- Email string
- Email address of the user.
- Email
Verified 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.
- Is
Two 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.
- Signup
Action 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 string - Billing frequency of the user.
- Default
Account stringId - Default account ID of the user.
- Edition string
- Edition of the platform being used.
- Email string
- Email address of the user.
- Email
Verified 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.
- Is
Two 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.
- Signup
Action 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.
- billing
Frequency String - Billing frequency of the user.
- default
Account StringId - Default account ID of the user.
- edition String
- Edition of the platform being used.
- email String
- Email address of the user.
- email
Verified 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.
- is
Two 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.
- signup
Action 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.
- billing
Frequency string - Billing frequency of the user.
- default
Account stringId - Default account ID of the user.
- edition string
- Edition of the platform being used.
- email string
- Email address of the user.
- email
Verified 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.
- is
Two 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.
- signup
Action 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.
- billing
Frequency String - Billing frequency of the user.
- default
Account StringId - Default account ID of the user.
- edition String
- Edition of the platform being used.
- email String
- Email address of the user.
- email
Verified 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.
- is
Two 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.
- signup
Action 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.