1. Packages
  2. AWS
  3. API Docs
  4. connect
  5. getUser
AWS v6.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

aws.connect.getUser

Explore with Pulumi AI

AWS v6.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

Provides details about a specific Amazon Connect User.

Example Usage

By name

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = aws.connect.getUser({
    instanceId: "aaaaaaaa-bbbb-cccc-dddd-111111111111",
    name: "Example",
});
Copy
import pulumi
import pulumi_aws as aws

example = aws.connect.get_user(instance_id="aaaaaaaa-bbbb-cccc-dddd-111111111111",
    name="Example")
Copy
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/connect"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := connect.LookupUser(ctx, &connect.LookupUserArgs{
			InstanceId: "aaaaaaaa-bbbb-cccc-dddd-111111111111",
			Name:       pulumi.StringRef("Example"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() => 
{
    var example = Aws.Connect.GetUser.Invoke(new()
    {
        InstanceId = "aaaaaaaa-bbbb-cccc-dddd-111111111111",
        Name = "Example",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.connect.ConnectFunctions;
import com.pulumi.aws.connect.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 = ConnectFunctions.getUser(GetUserArgs.builder()
            .instanceId("aaaaaaaa-bbbb-cccc-dddd-111111111111")
            .name("Example")
            .build());

    }
}
Copy
variables:
  example:
    fn::invoke:
      function: aws:connect:getUser
      arguments:
        instanceId: aaaaaaaa-bbbb-cccc-dddd-111111111111
        name: Example
Copy

By user_id

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = aws.connect.getUser({
    instanceId: "aaaaaaaa-bbbb-cccc-dddd-111111111111",
    userId: "cccccccc-bbbb-cccc-dddd-111111111111",
});
Copy
import pulumi
import pulumi_aws as aws

example = aws.connect.get_user(instance_id="aaaaaaaa-bbbb-cccc-dddd-111111111111",
    user_id="cccccccc-bbbb-cccc-dddd-111111111111")
Copy
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/connect"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := connect.LookupUser(ctx, &connect.LookupUserArgs{
			InstanceId: "aaaaaaaa-bbbb-cccc-dddd-111111111111",
			UserId:     pulumi.StringRef("cccccccc-bbbb-cccc-dddd-111111111111"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() => 
{
    var example = Aws.Connect.GetUser.Invoke(new()
    {
        InstanceId = "aaaaaaaa-bbbb-cccc-dddd-111111111111",
        UserId = "cccccccc-bbbb-cccc-dddd-111111111111",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.connect.ConnectFunctions;
import com.pulumi.aws.connect.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 = ConnectFunctions.getUser(GetUserArgs.builder()
            .instanceId("aaaaaaaa-bbbb-cccc-dddd-111111111111")
            .userId("cccccccc-bbbb-cccc-dddd-111111111111")
            .build());

    }
}
Copy
variables:
  example:
    fn::invoke:
      function: aws:connect:getUser
      arguments:
        instanceId: aaaaaaaa-bbbb-cccc-dddd-111111111111
        userId: cccccccc-bbbb-cccc-dddd-111111111111
Copy

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>
Copy
def get_user(instance_id: Optional[str] = None,
             name: Optional[str] = None,
             tags: Optional[Mapping[str, str]] = None,
             user_id: Optional[str] = None,
             opts: Optional[InvokeOptions] = None) -> GetUserResult
def get_user_output(instance_id: Optional[pulumi.Input[str]] = None,
             name: Optional[pulumi.Input[str]] = None,
             tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
             user_id: Optional[pulumi.Input[str]] = None,
             opts: Optional[InvokeOptions] = None) -> Output[GetUserResult]
Copy
func LookupUser(ctx *Context, args *LookupUserArgs, opts ...InvokeOption) (*LookupUserResult, error)
func LookupUserOutput(ctx *Context, args *LookupUserOutputArgs, opts ...InvokeOption) LookupUserResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetUserResult> getUser(GetUserArgs args, InvokeOptions options)
public static Output<GetUserResult> getUser(GetUserArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: aws:connect/getUser:getUser
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

InstanceId This property is required. string
Reference to the hosting Amazon Connect Instance
Name string
Returns information on a specific User by name
Tags Dictionary<string, string>
A map of tags to assign to the User.
UserId string
Returns information on a specific User by User id
InstanceId This property is required. string
Reference to the hosting Amazon Connect Instance
Name string
Returns information on a specific User by name
Tags map[string]string
A map of tags to assign to the User.
UserId string
Returns information on a specific User by User id
instanceId This property is required. String
Reference to the hosting Amazon Connect Instance
name String
Returns information on a specific User by name
tags Map<String,String>
A map of tags to assign to the User.
userId String
Returns information on a specific User by User id
instanceId This property is required. string
Reference to the hosting Amazon Connect Instance
name string
Returns information on a specific User by name
tags {[key: string]: string}
A map of tags to assign to the User.
userId string
Returns information on a specific User by User id
instance_id This property is required. str
Reference to the hosting Amazon Connect Instance
name str
Returns information on a specific User by name
tags Mapping[str, str]
A map of tags to assign to the User.
user_id str
Returns information on a specific User by User id
instanceId This property is required. String
Reference to the hosting Amazon Connect Instance
name String
Returns information on a specific User by name
tags Map<String>
A map of tags to assign to the User.
userId String
Returns information on a specific User by User id

getUser Result

The following output properties are available:

Arn string
The Amazon Resource Name (ARN) of the User.
DirectoryUserId string
The identifier of the user account in the directory used for identity management.
HierarchyGroupId string
The identifier of the hierarchy group for the user.
Id string
The provider-assigned unique ID for this managed resource.
IdentityInfos List<GetUserIdentityInfo>
A block that contains information about the identity of the user. Documented below.
InstanceId string
Specifies the identifier of the hosting Amazon Connect Instance.
Name string
PhoneConfigs List<GetUserPhoneConfig>
A block that contains information about the phone settings for the user. Documented below.
RoutingProfileId string
The identifier of the routing profile for the user.
SecurityProfileIds List<string>
A list of identifiers for the security profiles for the user.
Tags Dictionary<string, string>
A map of tags to assign to the User.
UserId string
Arn string
The Amazon Resource Name (ARN) of the User.
DirectoryUserId string
The identifier of the user account in the directory used for identity management.
HierarchyGroupId string
The identifier of the hierarchy group for the user.
Id string
The provider-assigned unique ID for this managed resource.
IdentityInfos []GetUserIdentityInfo
A block that contains information about the identity of the user. Documented below.
InstanceId string
Specifies the identifier of the hosting Amazon Connect Instance.
Name string
PhoneConfigs []GetUserPhoneConfig
A block that contains information about the phone settings for the user. Documented below.
RoutingProfileId string
The identifier of the routing profile for the user.
SecurityProfileIds []string
A list of identifiers for the security profiles for the user.
Tags map[string]string
A map of tags to assign to the User.
UserId string
arn String
The Amazon Resource Name (ARN) of the User.
directoryUserId String
The identifier of the user account in the directory used for identity management.
hierarchyGroupId String
The identifier of the hierarchy group for the user.
id String
The provider-assigned unique ID for this managed resource.
identityInfos List<GetUserIdentityInfo>
A block that contains information about the identity of the user. Documented below.
instanceId String
Specifies the identifier of the hosting Amazon Connect Instance.
name String
phoneConfigs List<GetUserPhoneConfig>
A block that contains information about the phone settings for the user. Documented below.
routingProfileId String
The identifier of the routing profile for the user.
securityProfileIds List<String>
A list of identifiers for the security profiles for the user.
tags Map<String,String>
A map of tags to assign to the User.
userId String
arn string
The Amazon Resource Name (ARN) of the User.
directoryUserId string
The identifier of the user account in the directory used for identity management.
hierarchyGroupId string
The identifier of the hierarchy group for the user.
id string
The provider-assigned unique ID for this managed resource.
identityInfos GetUserIdentityInfo[]
A block that contains information about the identity of the user. Documented below.
instanceId string
Specifies the identifier of the hosting Amazon Connect Instance.
name string
phoneConfigs GetUserPhoneConfig[]
A block that contains information about the phone settings for the user. Documented below.
routingProfileId string
The identifier of the routing profile for the user.
securityProfileIds string[]
A list of identifiers for the security profiles for the user.
tags {[key: string]: string}
A map of tags to assign to the User.
userId string
arn str
The Amazon Resource Name (ARN) of the User.
directory_user_id str
The identifier of the user account in the directory used for identity management.
hierarchy_group_id str
The identifier of the hierarchy group for the user.
id str
The provider-assigned unique ID for this managed resource.
identity_infos Sequence[GetUserIdentityInfo]
A block that contains information about the identity of the user. Documented below.
instance_id str
Specifies the identifier of the hosting Amazon Connect Instance.
name str
phone_configs Sequence[GetUserPhoneConfig]
A block that contains information about the phone settings for the user. Documented below.
routing_profile_id str
The identifier of the routing profile for the user.
security_profile_ids Sequence[str]
A list of identifiers for the security profiles for the user.
tags Mapping[str, str]
A map of tags to assign to the User.
user_id str
arn String
The Amazon Resource Name (ARN) of the User.
directoryUserId String
The identifier of the user account in the directory used for identity management.
hierarchyGroupId String
The identifier of the hierarchy group for the user.
id String
The provider-assigned unique ID for this managed resource.
identityInfos List<Property Map>
A block that contains information about the identity of the user. Documented below.
instanceId String
Specifies the identifier of the hosting Amazon Connect Instance.
name String
phoneConfigs List<Property Map>
A block that contains information about the phone settings for the user. Documented below.
routingProfileId String
The identifier of the routing profile for the user.
securityProfileIds List<String>
A list of identifiers for the security profiles for the user.
tags Map<String>
A map of tags to assign to the User.
userId String

Supporting Types

GetUserIdentityInfo

Email This property is required. string
The email address.
FirstName This property is required. string
The first name.
LastName This property is required. string
The last name.
SecondaryEmail This property is required. string
The secondary email address. If present, email notifications will be sent to this email address instead of the primary one.
Email This property is required. string
The email address.
FirstName This property is required. string
The first name.
LastName This property is required. string
The last name.
SecondaryEmail This property is required. string
The secondary email address. If present, email notifications will be sent to this email address instead of the primary one.
email This property is required. String
The email address.
firstName This property is required. String
The first name.
lastName This property is required. String
The last name.
secondaryEmail This property is required. String
The secondary email address. If present, email notifications will be sent to this email address instead of the primary one.
email This property is required. string
The email address.
firstName This property is required. string
The first name.
lastName This property is required. string
The last name.
secondaryEmail This property is required. string
The secondary email address. If present, email notifications will be sent to this email address instead of the primary one.
email This property is required. str
The email address.
first_name This property is required. str
The first name.
last_name This property is required. str
The last name.
secondary_email This property is required. str
The secondary email address. If present, email notifications will be sent to this email address instead of the primary one.
email This property is required. String
The email address.
firstName This property is required. String
The first name.
lastName This property is required. String
The last name.
secondaryEmail This property is required. String
The secondary email address. If present, email notifications will be sent to this email address instead of the primary one.

GetUserPhoneConfig

AfterContactWorkTimeLimit This property is required. int
The After Call Work (ACW) timeout setting, in seconds.
AutoAccept This property is required. bool
When Auto-Accept Call is enabled for an available agent, the agent connects to contacts automatically.
DeskPhoneNumber This property is required. string
The phone number for the user's desk phone.
PhoneType This property is required. string
The phone type. Valid values are DESK_PHONE and SOFT_PHONE.
AfterContactWorkTimeLimit This property is required. int
The After Call Work (ACW) timeout setting, in seconds.
AutoAccept This property is required. bool
When Auto-Accept Call is enabled for an available agent, the agent connects to contacts automatically.
DeskPhoneNumber This property is required. string
The phone number for the user's desk phone.
PhoneType This property is required. string
The phone type. Valid values are DESK_PHONE and SOFT_PHONE.
afterContactWorkTimeLimit This property is required. Integer
The After Call Work (ACW) timeout setting, in seconds.
autoAccept This property is required. Boolean
When Auto-Accept Call is enabled for an available agent, the agent connects to contacts automatically.
deskPhoneNumber This property is required. String
The phone number for the user's desk phone.
phoneType This property is required. String
The phone type. Valid values are DESK_PHONE and SOFT_PHONE.
afterContactWorkTimeLimit This property is required. number
The After Call Work (ACW) timeout setting, in seconds.
autoAccept This property is required. boolean
When Auto-Accept Call is enabled for an available agent, the agent connects to contacts automatically.
deskPhoneNumber This property is required. string
The phone number for the user's desk phone.
phoneType This property is required. string
The phone type. Valid values are DESK_PHONE and SOFT_PHONE.
after_contact_work_time_limit This property is required. int
The After Call Work (ACW) timeout setting, in seconds.
auto_accept This property is required. bool
When Auto-Accept Call is enabled for an available agent, the agent connects to contacts automatically.
desk_phone_number This property is required. str
The phone number for the user's desk phone.
phone_type This property is required. str
The phone type. Valid values are DESK_PHONE and SOFT_PHONE.
afterContactWorkTimeLimit This property is required. Number
The After Call Work (ACW) timeout setting, in seconds.
autoAccept This property is required. Boolean
When Auto-Accept Call is enabled for an available agent, the agent connects to contacts automatically.
deskPhoneNumber This property is required. String
The phone number for the user's desk phone.
phoneType This property is required. String
The phone type. Valid values are DESK_PHONE and SOFT_PHONE.

Package Details

Repository
AWS Classic pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.
AWS v6.76.0 published on Tuesday, Apr 8, 2025 by Pulumi