Creates a Resource Access Management (RAM) user provisioning.
Operation description
You can create a RAM user provisioning for a member in your resource directory to create a RAM user that has the same username as a CloudSSO user. This way, the CloudSSO user can access the resources of the member as the RAM user.
Debugging
Authorization information
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
DirectoryId | string | Yes | The ID of the resource directory. | d-003qew84**** |
DuplicationStrategy | string | Yes | 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 |
DeletionStrategy | string | Yes | The deletion policy. The policy is used to manage synchronized users when you delete the RAM user provisioning. Valid values:
| Delete |
Description | string | No | The description. | This is a user provisioning. |
PrincipalId | string | Yes | The identity ID of the RAM user provisioning. Valid values:
| g-02ha881d***** |
PrincipalType | string | Yes | The identity type of the RAM user provisioning. Valid values:
| Group |
TargetId | string | Yes | 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****** |
TargetType | string | Yes | The object for which you create the RAM user provisioning. The value is fixed as | RD-Account |
Response parameters
Examples
Sample success responses
JSON
format
{
"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": "testTargetName",
"TargetId": "1743382******",
"CreateTime": "2022-11-28T03:55:42Z",
"DirectoryId": "d-003qew84****",
"OwnerPk": "1639738******",
"TargetType": "RD-Account",
"PrincipalType": "Group"
},
"RequestId": "F6F90F3D-4502-5877-B80B-97476F6AE2CC"
}
Error codes
For a list of error codes, visit the Service error codes.