# SCP::IAM::Group

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

---

```
SCP::IAM::Group
```





## Description
An IAM Group that bundles IAM users and binds policies to them, enabling collective permission management. Users added to the group inherit the policies bound to it.

## Version
`1.4.0`

## Syntax

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

**JSON**
```json
{
  "Type" : "SCP::IAM::Group",
  "Properties" : {
    "Name" : "String",
    "Description" : "String",
    "PolicyIds" : [String],
    "UserIds" : [String]
  }
}

```

**YAML**
```yaml
Type: SCP::IAM::Group
Properties:
  Name: String
  Description: String
  PolicyIds: [String]
  UserIds: [String]

```

## Properties


### Name

The name of the group. It identifies the group within the domain and cannot be changed after creation. - minLength : 3 - maxLength : 24 - pattern : ^[a-zA-Z0-9\-.,_+=@ㄱ-ㅎㅏ-ㅣ가-힣]*$

| Attribute | Value |
|-----------|-------|
| **Required** | Yes |
| **Type** | String |
| **Pattern** | `^[a-zA-Z0-9\-.,_+=@ㄱ-ㅎㅏ-ㅣ가-힣]*$` |
| **Length constraints** | 3–24 |
| **Update requires** | No interruption |






### Description

A brief explanation or note about this group that identifies the purpose or usage of the group. - 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 group. Members of the group are granted the permissions defined in these policies.

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






### UserIds

The list of user IDs to add as members of the group. A member user inherits all policies bound to the group.

| Attribute | Value |
|-----------|-------|
| **Required** | No |
| **Type** | Array of String |
| **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 |
|-----------|-------------|
| **Name** | The name of the group. It identifies the group within the domain and cannot be changed after creation. - minLength : 3 - maxLength : 24 - pattern : ^[a-zA-Z0-9\-.,_+=@ㄱ-ㅎㅏ-ㅣ가-힣]*$ |
| **Description** | A brief explanation or note about this group that identifies the purpose or usage of the group. - maxLength : 1000 |
| **PolicyIds** | The list of policy IDs to bind to the group. Members of the group are granted the permissions defined in these policies. |
| **UserIds** | The list of user IDs to add as members of the group. A member user inherits all policies bound to the group. |
| **Type** | The type of the group. |
| **Srn** | The Samsung resource name (SRN) of the group. |
| **DomainName** | The domain name where the group belongs. |
| **ServiceType** | The service type of the group. |
| **ServiceName** | The service name of the group. |
| **ResourceType** | The resource type of the group. |
| **CreatorName** | The name of the user who created the group. |
| **CreatorEmail** | The email of the user who created the group. |
| **ModifierName** | The name of the user who last modified the group. |
| **ModifierEmail** | The email of the user who last modified the group. |


## Sample Template

### Create an IAM user and group, join the group
Creates a user and a group, and joins the user to the group

```yaml
SCPTemplateFormatVersion: '2026-01-01'
Description: 'IAM 사용자/그룹 생성 및 그룹 가입 샘플'

Parameters:
  AccountId:
    Type: String
    Description: 사용자를 생성할 계정 ID
  UserName:
    Type: String
    Description: 사용자 이름 (변경 시 리소스 교체)
  UserPassword:
    Type: String
    NoEcho: true
    Description: 사용자 비밀번호 (최초 로그인 후 변경 권장)
  GroupName:
    Type: String
    Default: example-group
    Description: 그룹 이름 (3~24자)

Resources:
  ExampleGroup:
    Type: SCP::IAM::Group
    Properties:
      Name: !Ref GroupName
      Description: 예제 그룹
      UserIds:
        - !Ref ExampleUser
  ExampleUser:
    Type: SCP::IAM::User
    Properties:
      AccountId: !Ref AccountId
      UserName: !Ref UserName
      TemporaryPassword: true
      Password: !Ref UserPassword
      Description: 예제 사용자

Outputs:
  UserId:
    Description: 생성된 사용자의 ID
    Value: !Ref ExampleUser
  GroupId:
    Description: 생성된 그룹의 ID
    Value: !Ref ExampleGroup

```

### Create an IAM policy and attach it to a group and role
Creates a policy and attaches it to a group and a role

```yaml
SCPTemplateFormatVersion: '2026-01-01'
Description: 'IAM 정책 생성 및 그룹/역할 연결 샘플'

Parameters:
  PolicyName:
    Type: String
    Default: example-policy
    Description: 정책 이름 (3~128자)
  GroupName:
    Type: String
    Description: 정책을 부여할 그룹 이름 (3~24자)
  RoleName:
    Type: String
    Description: 정책을 부여할 역할 이름 (1~64자)
  TrustedAccountId:
    Type: String
    Description: 역할을 Assume 할 계정 ID

Resources:
  ExamplePolicy:
    Type: SCP::IAM::Policy
    Properties:
      PolicyName: !Ref PolicyName
      Description: 예제 정책
      PolicyVersion:
        PolicyVersionName: POLICY_VERSION_1
        PolicyDocument:
          Version: '2024-07-01'
          Statement:
            - Sid: ReadOnly
              Effect: Allow
              Action:
                - 'iam:Get*'
                - 'iam:List*'
                - 'iam:Show*'
              Resource:
                - '*'
  ExampleGroup:
    Type: SCP::IAM::Group
    Properties:
      Name: !Ref GroupName
      Description: 정책이 연결된 그룹
      PolicyIds:
        - !Ref ExamplePolicy
  ExampleRole:
    Type: SCP::IAM::Role
    Properties:
      Name: !Ref RoleName
      Description: 정책이 연결된 역할
      PolicyIds:
        - !Ref ExamplePolicy
      Principals:
        - Type: ACCOUNT
          Value: !Ref TrustedAccountId

Outputs:
  PolicyId:
    Description: 생성된 정책의 ID
    Value: !Ref ExamplePolicy

```
