文档

ALIYUN::CloudSSO::UserToGroupAddition

更新时间:

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

语法

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

属性

属性名称

类型

必须

允许更新

描述

约束

DirectoryId

String

目录ID。

UserId

String

用户ID。

GroupId

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"
            }
          }
        }
      }
    }
                            
  • 本页导读 (1)
文档反馈