ALIYUN::CloudSSO::UserToGroupAddition

ALIYUN::CloudSSO::UserToGroupAddition类型用于为用户组添加用户。

语法

{
  "Type": "ALIYUN::CloudSSO::UserToGroupAddition",
  "Properties": {
    "DirectoryId": String,
    "UserId": String,
    "GroupId": String
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

DirectoryId

String

目录ID。

GroupId

String

用户组ID。

UserId

String

用户ID。

返回值

Fn::GetAtt

示例

YAML格式

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  DirectoryId:
    Description:
      en: The ID of the directory.
    Required: true
    Type: String
  GroupId:
    Description:
      en: The ID of the group.
    Required: true
    Type: String
  UserId:
    Description:
      en: The ID of the user.
    Required: true
    Type: String
Resources:
  UserToGroupAddition:
    Properties:
      DirectoryId:
        Ref: DirectoryId
      GroupId:
        Ref: GroupId
      UserId:
        Ref: UserId
    Type: ALIYUN::CloudSSO::UserToGroupAddition
                        

JSON格式

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "DirectoryId": {
      "Type": "String",
      "Description": {
        "en": "The ID of the directory."
      },
      "Required": true
    },
    "UserId": {
      "Type": "String",
      "Description": {
        "en": "The ID of the user."
      },
      "Required": true
    },
    "GroupId": {
      "Type": "String",
      "Description": {
        "en": "The ID of the group."
      },
      "Required": true
    }
  },
  "Resources": {
    "UserToGroupAddition": {
      "Type": "ALIYUN::CloudSSO::UserToGroupAddition",
      "Properties": {
        "DirectoryId": {
          "Ref": "DirectoryId"
        },
        "UserId": {
          "Ref": "UserId"
        },
        "GroupId": {
          "Ref": "GroupId"
        }
      }
    }
  }
}