SCP::IAM::User

SCP::IAM::User

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

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

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.

AttributeValue
RequiredYes
TypeString
Update requiresNo 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+.@-_]*$

AttributeValue
RequiredYes
TypeString
Pattern^[a-zA-Z0-9\+\.\@\-\_]*$
Length constraints1–64
Update requiresReplacement

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.

AttributeValue
RequiredYes
TypeString
Update requiresNo interruption

TemporaryPassword

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

AttributeValue
RequiredYes
TypeBoolean
Update requiresNo interruption

Description

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

AttributeValue
RequiredNo
TypeString
Length constraintsMax: 1000
Update requiresNo interruption

PolicyIds

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

AttributeValue
RequiredNo
TypeArray of String
Update requiresNo 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

AttributeValue
RequiredNo
TypeInteger
Range1–24
Update requiresNo 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

AttributeDescription
AccountIdThe identifier of the account where the user belongs. The user is created in this account.
UserNameThe 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+.@-_]*$
TemporaryPasswordWhether the password is temporary and must be changed on the next login.
DescriptionA brief explanation or note about this user that identifies the purpose or usage of the user. - maxLength : 1000
PolicyIdsThe list of policy IDs to bind to the user. The user is granted the permissions defined in these policies.
PasswordReuseCountThe 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
EmailThe email address of the user.
NameThe display name of the user.
StateThe state of the user. - enum : [ACTIVE, INACTIVE, DELETED]
TypeThe type of the user.
ConsoleUrlThe console URL of the user. The user signs in to the platform console through this URL.
LastLoginAtThe timestamp of the user last login, in ISO 8601 format.
LastPasswordUpdateAtThe timestamp when the password was last updated in ISO 8601 format.