# UserAttributes

Represents a user defined outside of this stack.

- Source: [`aws-iam/lib/user.ts`](https://github.com/aws/aws-cdk/blob/v2.274.0/packages/aws-cdk-lib/aws-iam/lib/user.ts#L134)

## Example

```ts
const user = iam.User.fromUserAttributes(this, 'MyImportedUserByAttributes', {
  userArn: 'arn:aws:iam::123456789012:user/johnsmith',
});
```

## Properties

- `userArn`: string (required) — The ARN of the user.

  Format: arn:<partition>:iam::<account-id>:user/<user-name-with-path>
