harness.platform.getCurrentUser
Data source for retrieving the current user based on the API key.
Using getCurrentUser
function getCurrentUser(opts?: InvokeOptions): Promise<GetCurrentUserResult>
def get_current_user(opts: Optional[InvokeOptions] = None) -> GetCurrentUserResult
func GetCurrentUser(ctx *Context, opts ...InvokeOption) (*GetCurrentUserResult, error)
> Note: This function is named GetCurrentUser
in the Go SDK.
public static class GetCurrentUser
{
public static Task<GetCurrentUserResult> InvokeAsync(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 lbrlabs/pulumi-harness
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
harness
Terraform Provider.