# CfnUserProps

Properties for defining a `CfnUser`.

Extends: CfnUserProps
Used as props by: CfnUser

- Source: Generated code
- Type last changed: v2.239.0 · 19 Feb 2026

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_connect as connect } from 'aws-cdk-lib';
const cfnUserProps: connect.CfnUserProps = {
  instanceArn: 'instanceArn',
  routingProfileArn: 'routingProfileArn',
  securityProfileArns: ['securityProfileArns'],
  username: 'username',

  // the properties below are optional
  afterContactWorkConfigs: [{
    afterContactWorkConfig: {
      afterContactWorkMode: 'afterContactWorkMode',
      afterContactWorkTimeLimit: 123,
    },
    channel: 'channel',

    // the properties below are optional
    agentFirstCallbackAfterContactWorkConfig: {
      afterContactWorkMode: 'afterContactWorkMode',
      afterContactWorkTimeLimit: 123,
    },
  }],
  autoAcceptConfigs: [{
    autoAccept: false,
    channel: 'channel',

    // the properties below are optional
    agentFirstCallbackAutoAccept: false,
  }],
  directoryUserId: 'directoryUserId',
  hierarchyGroupArn: 'hierarchyGroupArn',
  identityInfo: {
    email: 'email',
    firstName: 'firstName',
    lastName: 'lastName',
    mobile: 'mobile',
    secondaryEmail: 'secondaryEmail',
  },
  password: 'password',
  persistentConnectionConfigs: [{
    channel: 'channel',
    persistentConnection: false,
  }],
  phoneConfig: {
    afterContactWorkTimeLimit: 123,
    autoAccept: false,
    deskPhoneNumber: 'deskPhoneNumber',
    persistentConnection: false,
    phoneType: 'phoneType',
  },
  phoneNumberConfigs: [{
    channel: 'channel',
    phoneType: 'phoneType',

    // the properties below are optional
    phoneNumber: 'phoneNumber',
  }],
  tags: [{
    key: 'key',
    value: 'value',
  }],
  userProficiencies: [{
    attributeName: 'attributeName',
    attributeValue: 'attributeValue',
    level: 123,
  }],
  voiceEnhancementConfigs: [{
    channel: 'channel',
    voiceEnhancementMode: 'voiceEnhancementMode',
  }],
};
```

## Properties

- `afterContactWorkConfigs`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnUser.AfterContactWorkConfigPerChannelProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_connect.CfnUser.AfterContactWorkConfigPerChannelProperty.html)[] — After Contact Work configurations of a user.

- `autoAcceptConfigs`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnUser.AutoAcceptConfigProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_connect.CfnUser.AutoAcceptConfigProperty.html)[] — Auto-accept configurations of a user.

- `directoryUserId`: string — The identifier of the user account in the directory used for identity management.

- `hierarchyGroupArn`: string — The Amazon Resource Name (ARN) of the user's hierarchy group.

- `identityInfo`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnUser.UserIdentityInfoProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_connect.CfnUser.UserIdentityInfoProperty.html) — Information about the user identity.

- `instanceArn`: string (required) — The Amazon Resource Name (ARN) of the instance.

- `password`: string — The user's password.

- `persistentConnectionConfigs`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnUser.PersistentConnectionConfigProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_connect.CfnUser.PersistentConnectionConfigProperty.html)[] — Persistent Connection configurations of a user.

- `phoneConfig`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnUser.UserPhoneConfigProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_connect.CfnUser.UserPhoneConfigProperty.html) — Information about the phone configuration for the user.

- `phoneNumberConfigs`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnUser.PhoneNumberConfigProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_connect.CfnUser.PhoneNumberConfigProperty.html)[] — Phone Number configurations of a user.

- `routingProfileArn`: string (required) — The Amazon Resource Name (ARN) of the user's routing profile.

- `securityProfileArns`: string[] (required) — The Amazon Resource Name (ARN) of the user's security profile.

- `tags`: [CfnTag](/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — The tags.

- `username`: string (required) — The user name assigned to the user account.

- `userProficiencies`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnUser.UserProficiencyProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_connect.CfnUser.UserProficiencyProperty.html)[] — One or more predefined attributes assigned to a user, with a numeric value that indicates how their level of skill in a specified area.

- `voiceEnhancementConfigs`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnUser.VoiceEnhancementConfigProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_connect.CfnUser.VoiceEnhancementConfigProperty.html)[] — Voice Enhancement configurations of a user.
