Tüm Ürünler
Search
Belge Merkezi

:CreateUser

Son Güncelleme:Sep 30, 2026

Bir RAM kullanıcısı oluşturur.

Operation description

Bu konu, test adlı bir RAM kullanıcısı oluşturma örneği sunar.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

ram:CreateUser

create

*User

acs:ram::{#accountId}:user/*

None None

Request parameters

Parameter

Type

Required

Description

Example

UserPrincipalName

string

Yes

Resource Access Management (RAM) kullanıcısının oturum açma adı.

Ad, <username>@<AccountAlias>.onaliyun.com biçimindedir. <username>, RAM kullanıcısının adını belirtir. <AccountAlias>.onaliyun.com, varsayılan etki alanı adını belirtir. Varsayılan etki alanı adını sorgulama hakkında daha fazla bilgi için GetDefaultDomain konusuna bakın.

UserPrincipalName değeri 1 ila 128 karakter uzunluğunda olmalıdır ve harf, rakam, nokta (.), tire (-) ve alt çizgi (_) içerebilir. <username> değeri 1 ila 64 karakter uzunluğunda olmalıdır.

Test@example.onaliyun.com

DisplayName

string

Yes

RAM kullanıcısının görünen adı.

Ad, 1 ila 24 karakter uzunluğunda olmalıdır.

test

MobilePhone

string

No

RAM kullanıcısının cep telefonu numarası.

Biçim: Ülke kodu-Cep telefonu numarası.

Not

Bu parametre yalnızca Çin sitesi (aliyun.com) için geçerlidir.

86-1868888****

Email

string

No

RAM kullanıcısının e-posta adresi.

Not

Bu parametre yalnızca Çin sitesi (aliyun.com) için geçerlidir.

alice@example.com

Comments

string

No

Açıklama.

Açıklama 1 ila 128 karakter uzunluğunda olmalıdır.

This is a cloud computing engineer.

Tag

array<object>

No

Etiketler. En fazla 20 etiket belirtebilirsiniz.

object

No

Etiket.

Key

string

No

Etiketin anahtarı.

Etiket anahtarı boş bir dize olamaz. Etiket anahtarı en fazla 128 karakter uzunluğunda olabilir ve acs: veya aliyun ile başlayamaz. Etiket anahtarı http:// veya https:// içeremez.

operator

Value

string

No

Etiketin değeri.

Etiket değeri boş bir dize olabilir. Etiket değeri en fazla 128 karakter uzunluğunda olabilir. Etiket değeri acs: ile başlayamaz ve http:// veya https:// içeremez.

alice

Ortak istek parametreleri hakkında daha fazla bilgi için API Referansı konusuna bakın.

Response elements

Element

Type

Description

Example

object

Yanıt parametreleri.

User

object

RAM kullanıcısı bilgileri.

DisplayName

string

RAM kullanıcısının görünen adı.

test

UserPrincipalName

string

RAM kullanıcısının oturum açma adı.

test@example.onaliyun.com

Email

string

RAM kullanıcısının e-posta adresi.

Not

Bu parametre yalnızca Çin sitesi (aliyun.com) için geçerlidir.

alice@example.com

UpdateDate

string

RAM kullanıcısı bilgilerinin güncellenme zamanı.

2020-10-12T09:12:00Z

MobilePhone

string

RAM kullanıcısının cep telefonu numarası.

Not

Bu parametre yalnızca Çin sitesi (aliyun.com) için geçerlidir.

86-1868888****

UserId

string

RAM kullanıcısının kimliği.

20732900249392****

Comments

string

Açıklama.

This is a cloud computing engineer.

LastLoginDate

string

RAM kullanıcısının Alibaba Cloud Yönetim Konsolu'nda son oturum açma zamanı.

2020-10-12T09:12:00Z

CreateDate

string

RAM kullanıcısının oluşturulma zamanı.

2020-10-12T09:12:00Z

ProvisionType

string

RAM kullanıcısının kaynağı. Geçerli değerler:

  • Manual: RAM kullanıcısı RAM konsolunda manuel olarak oluşturulur.

  • SCIM: RAM kullanıcısı, System for Cross-domain Identity Management (SCIM) kullanılarak eşleştirilir.

  • CloudSSO: RAM kullanıcısı bir CloudSSO kullanıcısından eşleştirilir.

Manual

Tags

object

Tag

array<object>

Etiket değeri.

object

TagKey

string

Etiket anahtarı.

operator

TagValue

string

Etiket değeri.

alice

RequestId

string

İstek kimliği.

2BB8C44A-2862-4922-AD43-03924749173B

Examples

Success response

JSON format

{
  "User": {
    "DisplayName": "test",
    "UserPrincipalName": "test@example.onaliyun.com",
    "Email": "alice@example.com",
    "UpdateDate": "2020-10-12T09:12:00Z",
    "MobilePhone": "86-1868888****",
    "UserId": "20732900249392****",
    "Comments": "This is a cloud computing engineer.",
    "LastLoginDate": "2020-10-12T09:12:00Z",
    "CreateDate": "2020-10-12T09:12:00Z",
    "ProvisionType": "Manual",
    "Tags": {
      "Tag": [
        {
          "TagKey": "operator",
          "TagValue": "alice"
        }
      ]
    }
  },
  "RequestId": "2BB8C44A-2862-4922-AD43-03924749173B"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.