create_user
¶
create_user(
username: AgentUsername,
security_profile_ids: SecurityProfileIds,
routing_profile_id: RoutingProfileId,
instance_id: InstanceId,
*,
config_overrides: Optional[ConnectClientConfig] = None,
password: Optional[Password] = None,
identity_info: Optional[UserIdentityInfo] = None,
phone_config: Optional[UserPhoneConfig] = None,
directory_user_id: Optional[DirectoryUserId] = None,
hierarchy_group_id: Optional[HierarchyGroupId] = None,
auto_accept_configs: Optional[AutoAcceptConfigs] = None,
after_contact_work_configs: Optional[AfterContactWorkConfigs] = None,
phone_number_configs: Optional[PhoneNumberConfigs] = None,
persistent_connection_configs: Optional[PersistentConnectionConfigs] = None,
voice_enhancement_configs: Optional[VoiceEnhancementConfigs] = None,
tags: Optional[TagMap] = None,
) -> CreateUserResponse
Creates a user account for the specified Connect Customer instance.
Certain UserIdentityInfo parameters are required in some situations. For example, Email, FirstName and LastName are required if you are using Connect Customer or SAML for identity management.
Fields in PhoneConfig cannot be set simultaneously with their corresponding channel-specific configuration parameters. Specifically:
-
PhoneConfig.AutoAcceptconflicts withAutoAcceptConfigs -
PhoneConfig.AfterContactWorkTimeLimitconflicts withAfterContactWorkConfigs -
PhoneConfig.PhoneTypeandPhoneConfig.PhoneNumberconflict withPhoneNumberConfigs -
PhoneConfig.PersistentConnectionconflicts withPersistentConnectionConfigs
We recommend using channel-specific parameters such as AutoAcceptConfigs, AfterContactWorkConfigs, PhoneNumberConfigs, PersistentConnectionConfigs, and VoiceEnhancementConfigs for per-channel configuration.
For information about how to create users using the Connect Customer admin website, see Add Users in the Connect Customer Administrator Guide.
Parameters:
-
username(AgentUsername) –The user name for the account. For instances not using SAML for identity management, the user name can include up to 20 characters. If you are using SAML for identity management, the user name can include up to 64 characters from [a-zA-Z0-9_-.\@]+.
Username can include @ only if used in an email format. For example:
-
Correct: testuser
-
Correct: [email protected]
-
Incorrect: testuser@example
-
-
password(Optional[Password], default:None) –The password for the user account. A password is required if you are using Connect Customer for identity management. Otherwise, it is an error to include a password.
-
identity_info(Optional[UserIdentityInfo], default:None) –The information about the identity of the user.
-
phone_config(Optional[UserPhoneConfig], default:None) –The phone settings for the user. This parameter is optional. If not provided, the user can be configured using channel-specific parameters such as
AutoAcceptConfigs,AfterContactWorkConfigs,PhoneNumberConfigs,PersistentConnectionConfigs, andVoiceEnhancementConfigs. -
directory_user_id(Optional[DirectoryUserId], default:None) –The identifier of the user account in the directory used for identity management. If Connect Customer cannot access the directory, you can specify this identifier to authenticate users. If you include the identifier, we assume that Connect Customer cannot access the directory. Otherwise, the identity information is used to authenticate users from your directory.
This parameter is required if you are using an existing directory for identity management in Connect Customer when Connect Customer cannot access your directory to authenticate users. If you are using SAML for identity management and include this parameter, an error is returned.
-
security_profile_ids(SecurityProfileIds) –The identifier of the security profile for the user.
-
routing_profile_id(RoutingProfileId) –The identifier of the routing profile for the user.
-
hierarchy_group_id(Optional[HierarchyGroupId], default:None) –The identifier of the hierarchy group for the user.
-
instance_id(InstanceId) –The identifier of the Connect Customer instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
-
auto_accept_configs(Optional[AutoAcceptConfigs], default:None) –The list of auto-accept configuration settings for each channel.
-
after_contact_work_configs(Optional[AfterContactWorkConfigs], default:None) –The list of after contact work (ACW) timeout configuration settings for each channel.
-
phone_number_configs(Optional[PhoneNumberConfigs], default:None) –The list of phone number configuration settings for each channel.
-
persistent_connection_configs(Optional[PersistentConnectionConfigs], default:None) –The list of persistent connection configuration settings for each channel.
-
voice_enhancement_configs(Optional[VoiceEnhancementConfigs], default:None) –The list of voice enhancement configuration settings for each channel.
-
tags(Optional[TagMap], default:None) –The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.
Raises:
-
DuplicateResourceException–A resource with the specified name already exists.
-
InternalServiceException–Request processing failed because of an error or failure with the service.
-
InvalidParameterException–One or more of the specified parameters are not valid.
-
InvalidRequestException–The request is not valid.
-
LimitExceededException–The allowed limit for the resource has been exceeded.
-
ResourceNotFoundException–The specified resource was not found.
-
ThrottlingException–The throttling limit has been exceeded.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_connect/_services/connect.py
6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 | |