All Products
Search
Document Center

Resource Orchestration Service:User resources

Last Updated:Jun 03, 2026

Lists the AssociationProperty values available for user-related resources in ROS templates, along with usage examples.

AssociationProperty values

Description

Corresponding AssociationPropertyMetadata

ALIYUN::User::Account::AccountIds

The user ID.

Usage example:

  • Example code

    JSON example:

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "AccountIds": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::User::Account::AccountIds"
        }
      }
    }

    YAML example:

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      AccountIds:
        Type: String
        AssociationProperty: ALIYUN::User::Account::AccountIds
  • Example description

    Sets the AssociationProperty of the AccountIds parameter to ALIYUN::User::Account::AccountIds, which retrieves user account IDs.

ALIYUN::User::AccountId

Retrieves the Alibaba Cloud account ID.

Example code

JSON example:

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "MasterAccountId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::User::AccountId"
    }
  }
}

YAML example:

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  MasterAccountId:
    Type: String
    AssociationProperty: ALIYUN::User::AccountId

ALIYUN::User::UserId

Retrieves the current Alibaba Cloud user ID.

Example code

JSON example:

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "CurrentAccountId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::User::UserId"
    }
  }
}

YAML example:

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  CurrentAccountId:
    Type: String
    AssociationProperty: ALIYUN::User::UserId