全部產品
Search
文件中心

:ALIYUN::EdsUser::User

更新時間:Mar 28, 2026

ALIYUN::EdsUser::User類型用於建立便捷帳號使用者。

文法

{
  "Type": "ALIYUN::EdsUser::User",
  "Properties": {
    "OrgId": String,
    "OwnerType": String,
    "EndUserId": String,
    "Email": String,
    "Phone": String,
    "Remark": String,
    "Password": String,
    "PasswordExpireDays": String,
    "AutoLockTime": String,
    "BusinessChannel": String,
    "IsLocalAdmin": Boolean,
    "RealNickName": String
  }
}

屬性

屬性名稱

類型

必須

允許更新

描述

約束

AutoLockTime

String

自動鎖定帳號的日期。

BusinessChannel

String

渠道。

IsLocalAdmin

Boolean

是否將該便捷帳號設為本地管理員。

PasswordExpireDays

String

使用者帳號的密碼預設為永久有效。

可通過此參數設定 30~365 天的密碼有效期間,當密碼到期後,終端使用者必須先修改密碼才能繼續登入。

RealNickName

String

OrgId

String

使用者所屬的組織。

OwnerType

String

帳號歸屬類型。

取值:

  • Normal:使用者啟用。

  • CreateFromManager:管理員啟用。

EndUserId

String

使用者名稱。

自訂設定,由小寫字母、數字和底線組成,長度為3~24個字元。

Email

String

郵箱。

用於接收相關郵件,如分配案頭通知訊息。郵箱和手機號二選一必填。

Phone

String

手機號。

用於接收相關簡訊,如分配案頭通知簡訊。郵箱和手機號二選一必填。

Remark

String

使用者備忘。

Password

String

使用者密碼。

傳回值

Fn::GetAtt

EndUserId:使用者名稱。

樣本

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  EndUserId:
    Type: String
    Description: The name of the end user. The name must be 3 to 24 characters in length, and can contain lowercase letters, digits, and underscores (_).
    Default: test123
  Phone:
    Type: String
    Description: Mobile numbers are not supported on the international site (alibabacloud.com).
    Default: '********'
Resources:
  User:
    Type: ALIYUN::EdsUser::User
    Properties:
      EndUserId:
        Ref: EndUserId
      Phone:
        Ref: Phone
Outputs:
  EndUserId:
    Description: The name of the end user.
    Value:
      Fn::GetAtt:
        - User
        - EndUserId
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "EndUserId": {
      "Type": "String",
      "Description": "The name of the end user. The name must be 3 to 24 characters in length, and can contain lowercase letters, digits, and underscores (_).",
      "Default": "test123"
    },
    "Phone": {
      "Type": "String",
      "Description": "Mobile numbers are not supported on the international site (alibabacloud.com).",
      "Default": "********"
    }
  },
  "Resources": {
    "User": {
      "Type": "ALIYUN::EdsUser::User",
      "Properties": {
        "EndUserId": {
          "Ref": "EndUserId"
        },
        "Phone": {
          "Ref": "Phone"
        }
      }
    }
  },
  "Outputs": {
    "EndUserId": {
      "Description": "The name of the end user.",
      "Value": {
        "Fn::GetAtt": [
          "User",
          "EndUserId"
        ]
      }
    }
  }
}