CreateUserProvisioning
Invokes CreateUserProvisioning to create a Resource Access Management (RAM) user synchronization.
Operation description
You can create a Resource Access Management (RAM) user synchronization to synchronously create a Resource Access Management (RAM) user that has the same name as a CloudSSO user in the destination account in a resource directory, and then use the Resource Access Management (RAM) user to access resources in the account.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cloudsso:CreateUserProvisioning |
create |
*UserProvisioning
*Account
Group
User
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DirectoryId |
string |
Yes |
The ID of the CloudSSO directory. |
d-003qew84**** |
| DuplicationStrategy |
string |
Yes |
The conflict resolution policy. This policy specifies how to handle conflicts when a CloudSSO user is synchronized to Resource Access Management (RAM) user with the same name already exists. Valid values:
|
KeepBoth |
| DeletionStrategy |
string |
Yes |
The deletion policy. This policy specifies how to handle the synchronized Resource Access Management (RAM) users when the Resource Access Management (RAM) user synchronization is deleted. Valid values:
|
Delete |
| Description |
string |
No |
The description. |
This is a user provisioning. |
| PrincipalId |
string |
Yes |
The ID of the identity for the Resource Access Management (RAM) user synchronization. Valid values:
|
g-02ha881d***** |
| PrincipalType |
string |
Yes |
The type of the Resource Access Management (RAM) user synchronization. Valid values:
|
Group |
| TargetId |
string |
Yes |
The ID of the destination for the Resource Access Management (RAM) user synchronization. Currently, the value is the ID of the account in a resource directory. |
1743382****** |
| TargetType |
string |
Yes |
The type of the destination for the Resource Access Management (RAM) user synchronization. Currently, the value is |
RD-Account |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| UserProvisioning |
object |
The Resource Access Management (RAM) user synchronization information. |
|
| Status |
string |
The status of the Resource Access Management (RAM) user synchronization. Valid values:
|
Enabled |
| Description |
string |
The description. |
This is a user provisioning. |
| UserProvisioningId |
string |
The ID of the Resource Access Management (RAM) user synchronization. |
up-002axzhapcbz6e63**** |
| PrincipalId |
string |
The ID of the identity for the Resource Access Management (RAM) user synchronization. Valid values:
|
g-02ha881d***** |
| TargetPath |
string |
The path of the destination account in a resource directory for the Resource Access Management (RAM) user synchronization. |
rd-******/root/test** |
| UpdateTime |
string |
The update time. The time is displayed in UTC. |
2022-11-28T03:55:42Z |
| DuplicationStrategy |
string |
The conflict resolution policy. This policy specifies how to handle conflicts when a CloudSSO user is synchronized to Resource Access Management (RAM) user with the same name already exists. Valid values:
|
KeepBoth |
| DeletionStrategy |
string |
The deletion policy. This policy specifies how to handle the synchronized Resource Access Management (RAM) users when the Resource Access Management (RAM) user synchronization is deleted. Valid values:
|
Delete |
| PrincipalName |
string |
The name of the identity for the Resource Access Management (RAM) user synchronization. Valid values:
|
testGroupName |
| TargetName |
string |
The name of the destination for the Resource Access Management (RAM) user synchronization. Currently, the value is the name of the account in a resource directory. |
testTargetName |
| TargetId |
string |
The ID of the destination for the Resource Access Management (RAM) user synchronization. Currently, the value is the ID of the account in a resource directory. |
1743382****** |
| CreateTime |
string |
The creation time. The time is displayed in UTC. |
2022-11-28T03:55:42Z |
| DirectoryId |
string |
The ID of the CloudSSO directory. |
d-003qew84**** |
| OwnerPk |
string |
The ID of the Alibaba Cloud account to which the CloudSSO directory belongs. |
1639738****** |
| TargetType |
string |
The type of the destination for the Resource Access Management (RAM) user synchronization. Currently, the value is |
RD-Account |
| PrincipalType |
string |
The type of the Resource Access Management (RAM) user synchronization. Valid values:
|
Group |
| RequestId |
string |
The request ID. |
F6F90F3D-4502-5877-B80B-97476F6AE2CC |
Examples
Success response
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
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.