Harness v0.3.2 published on Monday, Sep 16, 2024 by Pulumi
harness.platform.getUser
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as harness from "@pulumi/harness";
const example = harness.platform.getUser({
orgId: "org_id",
projectId: "project_id",
email: "john.doe@harness.io",
});
import pulumi
import pulumi_harness as harness
example = harness.platform.get_user(org_id="org_id",
project_id="project_id",
email="john.doe@harness.io")
package main
import (
"github.com/pulumi/pulumi-harness/sdk/go/harness/platform"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := platform.LookupUser(ctx, &platform.LookupUserArgs{
OrgId: pulumi.StringRef("org_id"),
ProjectId: pulumi.StringRef("project_id"),
Email: "john.doe@harness.io",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Harness = Pulumi.Harness;
return await Deployment.RunAsync(() =>
{
var example = Harness.Platform.GetUser.Invoke(new()
{
OrgId = "org_id",
ProjectId = "project_id",
Email = "john.doe@harness.io",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.harness.platform.PlatformFunctions;
import com.pulumi.harness.platform.inputs.GetUserArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var example = PlatformFunctions.getUser(GetUserArgs.builder()
.orgId("org_id")
.projectId("project_id")
.email("john.doe@harness.io")
.build());
}
}
variables:
example:
fn::invoke:
Function: harness:platform:getUser
Arguments:
orgId: org_id
projectId: project_id
email: john.doe@harness.io
Using getUser
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 getUser(args: GetUserArgs, opts?: InvokeOptions): Promise<GetUserResult>
function getUserOutput(args: GetUserOutputArgs, opts?: InvokeOptions): Output<GetUserResult>
def get_user(email: Optional[str] = None,
org_id: Optional[str] = None,
project_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetUserResult
def get_user_output(email: Optional[pulumi.Input[str]] = None,
org_id: Optional[pulumi.Input[str]] = None,
project_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetUserResult]
func LookupUser(ctx *Context, args *LookupUserArgs, opts ...InvokeOption) (*LookupUserResult, error)
func LookupUserOutput(ctx *Context, args *LookupUserOutputArgs, opts ...InvokeOption) LookupUserResultOutput
> Note: This function is named LookupUser
in the Go SDK.
public static class GetUser
{
public static Task<GetUserResult> InvokeAsync(GetUserArgs args, InvokeOptions? opts = null)
public static Output<GetUserResult> Invoke(GetUserInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetUserResult> getUser(GetUserArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: harness:platform/getUser:getUser
arguments:
# arguments dictionary
The following arguments are supported:
- email str
- The email of the user.
- org_
id str - Organization identifier of the user.
- project_
id str - Project identifier of the user.
getUser Result
The following output properties are available:
- Disabled bool
- Whether or not the user account is disabled.
- Email string
- The email of the user.
- Externally
Managed bool - Whether or not the user account is externally managed.
- Id string
- The provider-assigned unique ID for this managed resource.
- Identifier string
- Unique identifier of the user.
- Locked bool
- Whether or not the user account is locked.
- Name string
- Name of the user.
- Org
Id string - Organization identifier of the user.
- Project
Id string - Project identifier of the user.
- Disabled bool
- Whether or not the user account is disabled.
- Email string
- The email of the user.
- Externally
Managed bool - Whether or not the user account is externally managed.
- Id string
- The provider-assigned unique ID for this managed resource.
- Identifier string
- Unique identifier of the user.
- Locked bool
- Whether or not the user account is locked.
- Name string
- Name of the user.
- Org
Id string - Organization identifier of the user.
- Project
Id string - Project identifier of the user.
- disabled Boolean
- Whether or not the user account is disabled.
- email String
- The email of the user.
- externally
Managed Boolean - Whether or not the user account is externally managed.
- id String
- The provider-assigned unique ID for this managed resource.
- identifier String
- Unique identifier of the user.
- locked Boolean
- Whether or not the user account is locked.
- name String
- Name of the user.
- org
Id String - Organization identifier of the user.
- project
Id String - Project identifier of the user.
- disabled boolean
- Whether or not the user account is disabled.
- email string
- The email of the user.
- externally
Managed boolean - Whether or not the user account is externally managed.
- id string
- The provider-assigned unique ID for this managed resource.
- identifier string
- Unique identifier of the user.
- locked boolean
- Whether or not the user account is locked.
- name string
- Name of the user.
- org
Id string - Organization identifier of the user.
- project
Id string - Project identifier of the user.
- disabled bool
- Whether or not the user account is disabled.
- email str
- The email of the user.
- externally_
managed bool - Whether or not the user account is externally managed.
- id str
- The provider-assigned unique ID for this managed resource.
- identifier str
- Unique identifier of the user.
- locked bool
- Whether or not the user account is locked.
- name str
- Name of the user.
- org_
id str - Organization identifier of the user.
- project_
id str - Project identifier of the user.
- disabled Boolean
- Whether or not the user account is disabled.
- email String
- The email of the user.
- externally
Managed Boolean - Whether or not the user account is externally managed.
- id String
- The provider-assigned unique ID for this managed resource.
- identifier String
- Unique identifier of the user.
- locked Boolean
- Whether or not the user account is locked.
- name String
- Name of the user.
- org
Id String - Organization identifier of the user.
- project
Id String - Project 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.