All Products
Search
Document Center

CloudSSO:GetUserProvisioning

Last Updated:Jun 10, 2026

Mengkueri provisioning Pengguna RAM (Resource Access Management).

Coba sekarang

Coba API ini di OpenAPI Explorer tanpa perlu penandatanganan manual. Panggilan yang berhasil akan secara otomatis menghasilkan contoh kode SDK sesuai dengan parameter Anda. Unduh kode tersebut dengan kredensial bawaan yang aman untuk penggunaan lokal.

Test

RAM authorization

Tabel berikut menjelaskan otorisasi yang diperlukan untuk memanggil API ini. Anda dapat menentukannya dalam kebijakan Resource Access Management (RAM). Kolom pada tabel dijelaskan sebagai berikut:

  • Action: Aksi yang dapat digunakan dalam elemen Action pada pernyataan kebijakan izin RAM untuk memberikan izin guna melakukan operasi tersebut.

  • API: API yang dapat Anda panggil untuk melakukan aksi tersebut.

  • Access level: Tingkat akses yang telah ditentukan untuk setiap API. Nilai yang valid: create, list, get, update, dan delete.

  • Resource type: Jenis resource yang mendukung otorisasi untuk melakukan aksi tersebut. Ini menunjukkan apakah aksi tersebut mendukung izin tingkat resource. Resource yang ditentukan harus kompatibel dengan aksi tersebut. Jika tidak, kebijakan tersebut tidak akan berlaku.

    • Untuk API dengan izin tingkat resource, jenis resource yang diperlukan ditandai dengan tanda bintang (*). Tentukan Nama Sumber Daya Alibaba Cloud (ARN) yang sesuai dalam elemen Resource pada kebijakan.

    • Untuk API tanpa izin tingkat resource, ditampilkan sebagai All Resources. Gunakan tanda bintang (*) dalam elemen Resource pada kebijakan.

  • Condition key: Kunci kondisi yang didefinisikan oleh layanan. Kunci ini memungkinkan kontrol granular, berlaku baik hanya untuk aksi maupun untuk aksi yang terkait dengan resource tertentu. Selain kunci kondisi spesifik layanan, Alibaba Cloud menyediakan serangkaian common condition keys yang berlaku di semua layanan yang didukung RAM.

  • Dependent action: Aksi dependen yang diperlukan untuk menjalankan aksi tersebut. Untuk menyelesaikan aksi tersebut, pengguna RAM atau role RAM harus memiliki izin untuk melakukan semua aksi dependen.

Action

Access level

Resource type

Condition key

Dependent action

cloudsso:GetUserProvisioning

get

*UserProvisioning

acs:cloudsso:{#regionId}:{#accountId}:directory/{#DirectoryId}/user-provisioning/{#UserProvisioningId}

None None

Parameter permintaan

Parameter

Type

Required

Description

Example

DirectoryId

string

Yes

ID direktori sumber daya.

d-003qew84****

UserProvisioningId

string

Yes

ID provisioning Pengguna RAM.

up-002axzhapcbz6e63****

Elemen respons

Element

Type

Description

Example

object

The returned results.

UserProvisioning

object

The information about the RAM user provisioning.

Status

string

The status of the RAM user provisioning. Valid values:

  • Enabled

  • Disabled

Enabled

Description

string

The description.

This is a user provisioning.

UserProvisioningId

string

The ID of the RAM user provisioning.

up-002axzhapcbz6e63****

PrincipalId

string

The identity ID of the RAM user provisioning. Valid values:

  • If Group is returned for the PrincipalType parameter, the value of this parameter is the ID of a CloudSSO user group (g-********).

  • If User is returned for the PrincipalType parameter, the value of this parameter is the ID of a CloudSSO user (u-********).

g-02ha881d*****

TargetPath

string

The path of the resource directory in which you create the RAM user provisioning for the member.

rd-******/root/test**

UpdateTime

string

The modification time.

2022-11-28T03:55:42Z

DuplicationStrategy

string

The conflict handling policy. The policy is used when a RAM user has the same username as the CloudSSO user who is synchronized to RAM. Valid values:

  • KeepBoth: When a CloudSSO user is synchronized to RAM, if a RAM user who has the same username as the CloudSSO user exists, the system creates a RAM user whose username is the username of the CloudSSO user plus the suffix _sso.

  • TakeOver: When a CloudSSO user is synchronized to RAM, if a RAM user who has the same username as the CloudSSO user exists, the system replaces the RAM user with the CloudSSO user.

KeepBoth

DeletionStrategy

string

The deletion policy. The policy is used to manage synchronized users when you delete the RAM user provisioning. Valid values:

  • Delete: When you delete the RAM user provisioning, the system deletes the synchronized users.

  • Keep: When you delete the RAM user provisioning, the system retains the synchronized users.

Delete

PrincipalName

string

The identity name of the RAM user provisioning. Valid values:

  • If Group is returned for the PrincipalType parameter, the value of this parameter is the name of a CloudSSO user group.

  • If User is returned for the PrincipalType parameter, the value of this parameter is the name of a CloudSSO user.

testGroupName

TargetName

string

The name of the object for which you create the RAM user provisioning. The value is fixed as the name of the member in the resource directory.

testRdMember

TargetId

string

The ID of the object for which you create the RAM user provisioning. The value is fixed as the ID of the member in the resource directory.

1743382******

CreateTime

string

The creation time.

2022-11-28T03:55:42Z

DirectoryId

string

The ID of the resource directory.

d-003qew84****

OwnerPk

string

The ID of the Alibaba Cloud account to which the resource directory belongs.

1639738******

TargetType

string

The object for which you create the RAM user provisioning. The value is fixed as RD-Account.

RD-Account

PrincipalType

string

The identity type of the RAM user provisioning. Valid values:

  • User: indicates that the identity of the RAM user provisioning is a CloudSSO user.

  • Group: indicates that the identity of the RAM user provisioning is a CloudSSO user group.

Group

RequestId

string

The request ID.

F6F90F3D-4502-5877-B80B-97476F6AE2CC

Contoh

Respons sukses

JSONformat

{
  "UserProvisioning": {
    "Status": "Enabled",
    "Description": "This is a user provisioning.",
    "UserProvisioningId": "up-002axzhapcbz6e63****",
    "PrincipalId": "g-02ha881d*****",
    "TargetPath": "rd-******/root/test**",
    "UpdateTime": "2022-11-28T03:55:42Z",
    "DuplicationStrategy": "KeepBoth",
    "DeletionStrategy": "Delete",
    "PrincipalName": "testGroupName",
    "TargetName": "testRdMember",
    "TargetId": "1743382******",
    "CreateTime": "2022-11-28T03:55:42Z",
    "DirectoryId": "d-003qew84****",
    "OwnerPk": "1639738******",
    "TargetType": "RD-Account",
    "PrincipalType": "Group"
  },
  "RequestId": "F6F90F3D-4502-5877-B80B-97476F6AE2CC"
}

Kode kesalahan

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.