Skip to main content

users

Creates, updates, deletes or gets a user resource or lists users in a region

Overview

Nameusers
TypeResource
DescriptionResource Type definition for AWS::Connect::User
Idaws.connect.users

Fields

NameDatatypeDescription
instance_arnstringThe identifier of the Amazon Connect instance.
directory_user_idstringThe identifier of the user account in the directory used for identity management.
hierarchy_group_arnstringThe identifier of the hierarchy group for the user.
usernamestringThe user name for the account.
passwordstringThe password for the user account. A password is required if you are using Amazon Connect for identity management. Otherwise, it is an error to include a password.
routing_profile_arnstringThe identifier of the routing profile for the user.
identity_infoobjectThe information about the identity of the user.
phone_configobjectThe phone settings for the user.
security_profile_arnsarrayOne or more security profile arns for the user
user_arnstringThe Amazon Resource Name (ARN) for the user.
tagsarrayOne or more tags.
user_proficienciesarrayOne or more predefined attributes assigned to a user, with a level that indicates how skilled they are.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTInstanceArn, PhoneConfig, RoutingProfileArn, SecurityProfileArns, Username, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all users in a region.

SELECT
region,
instance_arn,
directory_user_id,
hierarchy_group_arn,
username,
password,
routing_profile_arn,
identity_info,
phone_config,
security_profile_arns,
user_arn,
tags,
user_proficiencies
FROM aws.connect.users
WHERE region = 'us-east-1';

Gets all properties from an individual user.

SELECT
region,
instance_arn,
directory_user_id,
hierarchy_group_arn,
username,
password,
routing_profile_arn,
identity_info,
phone_config,
security_profile_arns,
user_arn,
tags,
user_proficiencies
FROM aws.connect.users
WHERE region = 'us-east-1' AND data__Identifier = '<UserArn>';

INSERT example

Use the following StackQL query and manifest file to create a new user resource, using stack-deploy.

/*+ create */
INSERT INTO aws.connect.users (
InstanceArn,
Username,
RoutingProfileArn,
PhoneConfig,
SecurityProfileArns,
region
)
SELECT
'{{ InstanceArn }}',
'{{ Username }}',
'{{ RoutingProfileArn }}',
'{{ PhoneConfig }}',
'{{ SecurityProfileArns }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.connect.users
WHERE data__Identifier = '<UserArn>'
AND region = 'us-east-1';

Permissions

To operate on the users resource, the following permissions are required:

Create

connect:CreateUser,
connect:TagResource,
connect:AssociateUserProficiencies

Read

connect:DescribeUser,
connect:ListUserProficiencies

Delete

connect:DeleteUser,
connect:UntagResource

Update

connect:UpdateUserIdentityInfo,
connect:UpdateUserPhoneConfig,
connect:UpdateUserRoutingProfile,
connect:UpdateUserSecurityProfiles,
connect:UpdateUserHierarchy,
connect:TagResource,
connect:UntagResource,
connect:AssociateUserProficiencies,
connect:DisassociateUserProficiencies,
connect:UpdateUserProficiencies

List

connect:ListUsers