Todos os produtos
Search
Central de documentação

Resource Orchestration Service:ALIYUN::CloudSSO::UserToGroupAddition

Última atualização: Jun 27, 2026

Adiciona um usuário a um grupo do CloudSSO.

Sintaxe

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

Propriedades

Propriedade

Tipo

Obrigatória

Editável

Descrição

Restrição

DirectoryId

String

Sim

Não

ID do diretório.

Nenhuma.

GroupId

String

Sim

Não

ID do grupo.

Nenhuma.

UserId

String

Sim

Não

ID do usuário.

Nenhuma.

Valores de retorno

Fn::GetAtt

Nenhum.

Exemplos

Formato 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
                        

Formato 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"
        }
      }
    }
  }
}