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"
}
}
}
}
}
文档内容是否对您有帮助?