# SCP::IAM::User

LLMS index: [llms.txt](https://docs.e.samsungsdscloud.com/en/templatereference/management/iam/llms.txt)

---

```
SCP::IAM::User
```





## Description
An IAM User that represents a person or service that accesses the platform. Permissions are granted through policies bound directly to the user or to the groups the user belongs to.

## Version
`1.4.0`

## Syntax

To declare this entity in your Infrastructure Builder template, use the following syntax:

**JSON**
```json
{
  "Type" : "SCP::IAM::User",
  "Properties" : {
    "AccountId" : "String",
    "UserName" : "String",
    "Password" : "String",
    "TemporaryPassword" : "Boolean",
    "Description" : "String",
    "PolicyIds" : [String],
    "PasswordReuseCount" : "Integer"
  }
}

```

**YAML**
```yaml
Type: SCP::IAM::User
Properties:
  AccountId: String
  UserName: String
  Password: String
  TemporaryPassword: Boolean
  Description: String
  PolicyIds: [String]
  PasswordReuseCount: Integer

```

## Properties


### AccountId

The identifier of the account where the user belongs. The user is created in this account.

| Attribute | Value |
|-----------|-------|
| **Required** | Yes |
| **Type** | String |
| **Update requires** | No interruption |






### UserName

The name of the user. It is used to log in and identify the user within the account and cannot be changed after creation. - maxLength : 64 - pattern : ^[a-zA-Z0-9\+\.\@\-\_]*$

| Attribute | Value |
|-----------|-------|
| **Required** | Yes |
| **Type** | String |
| **Pattern** | `^[a-zA-Z0-9\+\.\@\-\_]*$` |
| **Length constraints** | 1–64 |
| **Update requires** | Replacement |






### Password

The password of the user in plaintext. The plugin base64-encodes it before sending to the API. If empty, a password is generated automatically.

| Attribute | Value |
|-----------|-------|
| **Required** | Yes |
| **Type** | String |
| **Update requires** | No interruption |






### TemporaryPassword

Whether the password is temporary and must be changed on the next login.

| Attribute | Value |
|-----------|-------|
| **Required** | Yes |
| **Type** | Boolean |
| **Update requires** | No interruption |






### Description

A brief explanation or note about this user that identifies the purpose or usage of the user. - maxLength : 1000

| Attribute | Value |
|-----------|-------|
| **Required** | No |
| **Type** | String |
| **Length constraints** | Max: 1000 |
| **Update requires** | No interruption |






### PolicyIds

The list of policy IDs to bind to the user. The user is granted the permissions defined in these policies.

| Attribute | Value |
|-----------|-------|
| **Required** | No |
| **Type** | Array of String |
| **Update requires** | No interruption |






### PasswordReuseCount

The number of recent passwords that cannot be reused when changing the password. For example, 5 prevents the last 5 passwords from being reused. - minimum : 1 - maximum : 24

| Attribute | Value |
|-----------|-------|
| **Required** | No |
| **Type** | Integer |
| **Range** | 1–24 |
| **Update requires** | No interruption |







## Return Values

### Ref

When you pass the logical ID of this resource to the `Ref` function, Ref returns the value of the **Id**.


### Fn::GetAtt

| Attribute | Description |
|-----------|-------------|
| **AccountId** | The identifier of the account where the user belongs. The user is created in this account. |
| **UserName** | The name of the user. It is used to log in and identify the user within the account and cannot be changed after creation. - maxLength : 64 - pattern : ^[a-zA-Z0-9\+\.\@\-\_]*$ |
| **TemporaryPassword** | Whether the password is temporary and must be changed on the next login. |
| **Description** | A brief explanation or note about this user that identifies the purpose or usage of the user. - maxLength : 1000 |
| **PolicyIds** | The list of policy IDs to bind to the user. The user is granted the permissions defined in these policies. |
| **PasswordReuseCount** | The number of recent passwords that cannot be reused when changing the password. For example, 5 prevents the last 5 passwords from being reused. - minimum : 1 - maximum : 24 |
| **Email** | The email address of the user. |
| **Name** | The display name of the user. |
| **State** | The state of the user. - enum : [ACTIVE, INACTIVE, DELETED] |
| **Type** | The type of the user. |
| **ConsoleUrl** | The console URL of the user. The user signs in to the platform console through this URL. |
| **LastLoginAt** | The timestamp of the user last login, in ISO 8601 format. |
| **LastPasswordUpdateAt** | The timestamp when the password was last updated in ISO 8601 format. |
