1. Registry
  2. Packages
  3. Zenduty Provider
  4. API Docs
  5. getUser
Viewing docs for zenduty 2.0.0
published on Friday, Aug 14, 2026 by zenduty
Viewing docs for zenduty 2.0.0
published on Friday, Aug 14, 2026 by zenduty
    import * as pulumi from "@pulumi/pulumi";
    import * as zenduty from "@pulumi/zenduty";
    
    const exampleuser = zenduty.getUser({
        email: "",
    });
    
    import pulumi
    import pulumi_zenduty as zenduty
    
    exampleuser = zenduty.get_user(email="")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/zenduty/v2/zenduty"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := zenduty.LookupUser(ctx, &zenduty.LookupUserArgs{
    			Email: "",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Zenduty = Pulumi.Zenduty;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleuser = Zenduty.GetUser.Invoke(new()
        {
            Email = "",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.zenduty.ZendutyFunctions;
    import com.pulumi.zenduty.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 exampleuser = ZendutyFunctions.getUser(GetUserArgs.builder()
                .email("")
                .build());
    
        }
    }
    
    variables:
      exampleuser:
        fn::invoke:
          function: zenduty:getUser
          arguments:
            email: ""
    
    Example coming soon!
    
    import * as pulumi from "@pulumi/pulumi";
    
    export const user = exampleuser.users[0];
    
    import pulumi
    
    pulumi.export("user", exampleuser["users"][0])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		ctx.Export("user", exampleuser.Users[0])
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    
    return await Deployment.RunAsync(() => 
    {
        return new Dictionary<string, object?>
        {
            ["user"] = exampleuser.Users[0],
        };
    });
    
    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("user", exampleuser.users()[0]);
        }
    }
    
    outputs:
      user: ${exampleuser.users[0]}
    
    Example coming soon!
    

    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?: InvokeOutputOptions): Output<GetUserResult>
    def get_user(email: Optional[str] = None,
                 id: Optional[str] = None,
                 opts: Optional[InvokeOptions] = None) -> GetUserResult
    def get_user_output(email: pulumi.Input[Optional[str]] = None,
                 id: pulumi.Input[Optional[str]] = None,
                 opts: Optional[InvokeOutputOptions] = 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 Output<GetUserResult> Invoke(GetUserInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetUserResult> getUser(GetUserArgs args, InvokeOptions options)
    public static Output<GetUserResult> getUser(GetUserArgs args, InvokeOptions options)
    public static Output<GetUserResult> getUser(GetUserArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: zenduty:index/getUser:getUser
      arguments:
        # arguments dictionary
    data "zenduty_get_user" "name" {
        # arguments
    }

    The following arguments are supported:

    Email string
    Emailid of the user to query.
    Id string
    Email string
    Emailid of the user to query.
    Id string
    email string
    Emailid of the user to query.
    id string
    email String
    Emailid of the user to query.
    id String
    email string
    Emailid of the user to query.
    id string
    email str
    Emailid of the user to query.
    id str
    email String
    Emailid of the user to query.
    id String

    getUser Result

    The following output properties are available:

    Email string
    The emailid of the user.
    Id string
    Users List<GetUserUser>
    Email string
    The emailid of the user.
    Id string
    Users []GetUserUser
    email string
    The emailid of the user.
    id string
    users list(object)
    email String
    The emailid of the user.
    id String
    users List<GetUserUser>
    email string
    The emailid of the user.
    id string
    users GetUserUser[]
    email str
    The emailid of the user.
    id str
    users Sequence[GetUserUser]
    email String
    The emailid of the user.
    id String
    users List<Property Map>

    Supporting Types

    GetUserUser

    Email string
    Emailid of the user to query.
    FirstName string
    The first name of the user.
    LastName string
    The last name of the user.
    UniqueId string
    Username string
    The username of the user.
    Email string
    Emailid of the user to query.
    FirstName string
    The first name of the user.
    LastName string
    The last name of the user.
    UniqueId string
    Username string
    The username of the user.
    email string
    Emailid of the user to query.
    first_name string
    The first name of the user.
    last_name string
    The last name of the user.
    unique_id string
    username string
    The username of the user.
    email String
    Emailid of the user to query.
    firstName String
    The first name of the user.
    lastName String
    The last name of the user.
    uniqueId String
    username String
    The username of the user.
    email string
    Emailid of the user to query.
    firstName string
    The first name of the user.
    lastName string
    The last name of the user.
    uniqueId string
    username string
    The username of the user.
    email str
    Emailid of the user to query.
    first_name str
    The first name of the user.
    last_name str
    The last name of the user.
    unique_id str
    username str
    The username of the user.
    email String
    Emailid of the user to query.
    firstName String
    The first name of the user.
    lastName String
    The last name of the user.
    uniqueId String
    username String
    The username of the user.

    Package Details

    Repository
    zenduty zenduty/terraform-provider-zenduty
    License
    Notes
    This Pulumi package is based on the zenduty Terraform Provider.
    Viewing docs for zenduty 2.0.0
    published on Friday, Aug 14, 2026 by zenduty

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial