1. Packages
  2. Hsdp Provider
  3. API Docs
  4. getIamUser
hsdp 0.65.3 published on Tuesday, Apr 15, 2025 by philips-software

hsdp.getIamUser

Explore with Pulumi AI

hsdp logo
hsdp 0.65.3 published on Tuesday, Apr 15, 2025 by philips-software

    Provide details of a given HSDP IAM user.

    Typically, this resource is used to only test account. We highly recommend using the IAM Self serviceUI which HSDP provides for day to day user management tasks

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as hsdp from "@pulumi/hsdp";
    
    const john = hsdp.getIamUser({
        username: "john.doe@1e100.io",
    });
    
    import pulumi
    import pulumi_hsdp as hsdp
    
    john = hsdp.get_iam_user(username="john.doe@1e100.io")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/hsdp/hsdp"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := hsdp.LookupIamUser(ctx, &hsdp.LookupIamUserArgs{
    			Username: "john.doe@1e100.io",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Hsdp = Pulumi.Hsdp;
    
    return await Deployment.RunAsync(() => 
    {
        var john = Hsdp.GetIamUser.Invoke(new()
        {
            Username = "john.doe@1e100.io",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.hsdp.HsdpFunctions;
    import com.pulumi.hsdp.inputs.GetIamUserArgs;
    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 john = HsdpFunctions.getIamUser(GetIamUserArgs.builder()
                .username("john.doe@1e100.io")
                .build());
    
        }
    }
    
    variables:
      john:
        fn::invoke:
          function: hsdp:getIamUser
          arguments:
            username: john.doe@1e100.io
    
    import * as pulumi from "@pulumi/pulumi";
    
    export const johnsUuid = data.hsdp_iam_user.john.uuid;
    
    import pulumi
    
    pulumi.export("johnsUuid", data["hsdp_iam_user"]["john"]["uuid"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		ctx.Export("johnsUuid", data.Hsdp_iam_user.John.Uuid)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    
    return await Deployment.RunAsync(() => 
    {
        return new Dictionary<string, object?>
        {
            ["johnsUuid"] = data.Hsdp_iam_user.John.Uuid,
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    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) {
            ctx.export("johnsUuid", data.hsdp_iam_user().john().uuid());
        }
    }
    
    outputs:
      johnsUuid: ${data.hsdp_iam_user.john.uuid}
    

    Error conditions

    If the user does not fall under the given organization administration lookup may fail. In that case the lookup will return the following error

    responseCode: 4010

    Using getIamUser

    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 getIamUser(args: GetIamUserArgs, opts?: InvokeOptions): Promise<GetIamUserResult>
    function getIamUserOutput(args: GetIamUserOutputArgs, opts?: InvokeOptions): Output<GetIamUserResult>
    def get_iam_user(id: Optional[str] = None,
                     username: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetIamUserResult
    def get_iam_user_output(id: Optional[pulumi.Input[str]] = None,
                     username: Optional[pulumi.Input[str]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetIamUserResult]
    func LookupIamUser(ctx *Context, args *LookupIamUserArgs, opts ...InvokeOption) (*LookupIamUserResult, error)
    func LookupIamUserOutput(ctx *Context, args *LookupIamUserOutputArgs, opts ...InvokeOption) LookupIamUserResultOutput

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

    public static class GetIamUser 
    {
        public static Task<GetIamUserResult> InvokeAsync(GetIamUserArgs args, InvokeOptions? opts = null)
        public static Output<GetIamUserResult> Invoke(GetIamUserInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetIamUserResult> getIamUser(GetIamUserArgs args, InvokeOptions options)
    public static Output<GetIamUserResult> getIamUser(GetIamUserArgs args, InvokeOptions options)
    
    fn::invoke:
      function: hsdp:index/getIamUser:getIamUser
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Username string
    The username/email of the user in HSDP IAM
    Id string
    The UUID of the user
    Username string
    The username/email of the user in HSDP IAM
    Id string
    The UUID of the user
    username String
    The username/email of the user in HSDP IAM
    id String
    The UUID of the user
    username string
    The username/email of the user in HSDP IAM
    id string
    The UUID of the user
    username str
    The username/email of the user in HSDP IAM
    id str
    The UUID of the user
    username String
    The username/email of the user in HSDP IAM
    id String
    The UUID of the user

    getIamUser Result

    The following output properties are available:

    EmailAddress string
    The email address of the user. This field is only populated if the IAM user/service used has sufficient permissions to retrieve this value. It will be blank otherwise.
    Id string
    The UUID of the user
    Username string
    Uuid string

    Deprecated: Deprecated

    EmailAddress string
    The email address of the user. This field is only populated if the IAM user/service used has sufficient permissions to retrieve this value. It will be blank otherwise.
    Id string
    The UUID of the user
    Username string
    Uuid string

    Deprecated: Deprecated

    emailAddress String
    The email address of the user. This field is only populated if the IAM user/service used has sufficient permissions to retrieve this value. It will be blank otherwise.
    id String
    The UUID of the user
    username String
    uuid String

    Deprecated: Deprecated

    emailAddress string
    The email address of the user. This field is only populated if the IAM user/service used has sufficient permissions to retrieve this value. It will be blank otherwise.
    id string
    The UUID of the user
    username string
    uuid string

    Deprecated: Deprecated

    email_address str
    The email address of the user. This field is only populated if the IAM user/service used has sufficient permissions to retrieve this value. It will be blank otherwise.
    id str
    The UUID of the user
    username str
    uuid str

    Deprecated: Deprecated

    emailAddress String
    The email address of the user. This field is only populated if the IAM user/service used has sufficient permissions to retrieve this value. It will be blank otherwise.
    id String
    The UUID of the user
    username String
    uuid String

    Deprecated: Deprecated

    Package Details

    Repository
    hsdp philips-software/terraform-provider-hsdp
    License
    Notes
    This Pulumi package is based on the hsdp Terraform Provider.
    hsdp logo
    hsdp 0.65.3 published on Tuesday, Apr 15, 2025 by philips-software