UpdateUserProvisioning

Updated at:
Copy as MD

Invokes UpdateUserProvisioning to modify a Resource Access Management (RAM) user synchronization.

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

cloudsso:UpdateUserProvisioning

update

*UserProvisioning

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

None None

Request parameters

Parameter

Type

Required

Description

Example

DirectoryId

string

Yes

The directory ID.

d-003qew84****

UserProvisioningId

string

Yes

The ID of the Resource Access Management (RAM) user synchronization.

up-002axzhapcbz6e63****

NewDuplicationStrategy

string

No

The new duplication strategy. This strategy specifies how to handle name conflicts when a CloudSSO user is synchronized to Resource Access Management (RAM) user with the same name already exists. Valid values:

  • KeepBoth: Keep both users. When a CloudSSO user is synchronized to Resource Access Management (RAM) user with the same name already exists, the system appends the _sso suffix to the CloudSSO username and attempts to create a RAM user with the new username.

  • TakeOver: Replace the existing user. When a CloudSSO user is synchronized to Resource Access Management (RAM) user with the same name already exists, the system directly replaces the existing RAM user with the synchronized CloudSSO user.

KeepBoth

NewDeletionStrategy

string

No

The new deletion policy. This policy specifies how to handle synchronized Resource Access Management (RAM) users when the Resource Access Management (RAM) user synchronization is deleted. Valid values:

  • Delete: Delete the users. When the Resource Access Management (RAM) user synchronization is deleted, the system deletes the Resource Access Management (RAM) users that have been synchronized from CloudSSO to Resource Access Management (RAM).

  • Keep: Keep the users. When the Resource Access Management (RAM) user synchronization is deleted, the system retains the Resource Access Management (RAM) users that have been synchronized from CloudSSO to Resource Access Management (RAM).

Delete

NewDescription

string

No

The new description of the Resource Access Management (RAM) user synchronization.

description*****

Response elements

Element

Type

Description

Example

object

The response structure.

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: The Resource Access Management (RAM) user synchronization is enabled.

  • Disabled: The Resource Access Management (RAM) user synchronization is disabled.

Enabled

Description

string

The description of the Resource Access Management (RAM) user synchronization.

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 principal for the Resource Access Management (RAM) user synchronization. Valid values:

  • If PrincipalType is set to Group, the value is the ID of the CloudSSO group (g-********).

  • If PrincipalType is set to User, the value is the ID of the CloudSSO user (u-********).

g-02ha881d*****

TargetPath

string

The resource directory path of the target for the Resource Access Management (RAM) user synchronization.

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

UpdateTime

string

The update time. The time is displayed in UTC and follows the RFC 3339 standard in the YYYY-MM-DDTHH:mm:ssZ format.

2022-11-28T03:55:42Z

DuplicationStrategy

string

The duplication strategy. This strategy specifies how to handle name conflicts when a CloudSSO user is synchronized to Resource Access Management (RAM) user with the same name already exists. Valid values:

  • KeepBoth: Keep both users. When a CloudSSO user is synchronized to Resource Access Management (RAM) user with the same name already exists, the system appends the _sso suffix to the CloudSSO username and attempts to create a RAM user with the new username.

  • TakeOver: Replace the existing user. When a CloudSSO user is synchronized to Resource Access Management (RAM) user with the same name already exists, the system directly replaces the existing RAM user with the synchronized CloudSSO user.

KeepBoth

DeletionStrategy

string

The deletion policy. This policy specifies how to handle synchronized Resource Access Management (RAM) users when the Resource Access Management (RAM) user synchronization is deleted. Valid values:

  • Delete: Delete the users. When the Resource Access Management (RAM) user synchronization is deleted, the system deletes the Resource Access Management (RAM) users that have been synchronized from CloudSSO to Resource Access Management (RAM).

  • Keep: Keep the users. When the Resource Access Management (RAM) user synchronization is deleted, the system retains the Resource Access Management (RAM) users that have been synchronized from CloudSSO to Resource Access Management (RAM).

Delete

PrincipalName

string

The name of the principal for the Resource Access Management (RAM) user synchronization. Valid values:

  • If PrincipalType is set to Group, the value is the name of the CloudSSO group.

  • If PrincipalType is set to User, the value is the CloudSSO username.

testUserName

TargetName

string

The name of the target for the Resource Access Management (RAM) user synchronization. Currently, the value is the name of the account in a resource directory.

testMemberName

TargetId

string

The ID of the target for the Resource Access Management (RAM) user synchronization. Currently, the value is the ID of the account in a resource directory.

u-02ha881d*****

CreateTime

string

The creation time. The time is displayed in UTC and follows the RFC 3339 standard in the YYYY-MM-DDTHH:mm:ssZ format.

2022-11-28T03:55:42Z

DirectoryId

string

The directory ID.

d-003qew84****

OwnerPk

string

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

164987310*****

TargetType

string

The type of the target for the Resource Access Management (RAM) user synchronization. Currently, the value is RD-Account.

RD-Account

PrincipalType

string

The type of the principal for the Resource Access Management (RAM) user synchronization. Valid values:

  • User: The principal is a CloudSSO user.

  • Group: The principal is a CloudSSO group.

User

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": "testUserName",
    "TargetName": "testMemberName",
    "TargetId": "u-02ha881d*****",
    "CreateTime": "2022-11-28T03:55:42Z",
    "DirectoryId": "d-003qew84****",
    "OwnerPk": "164987310*****",
    "TargetType": "RD-Account",
    "PrincipalType": "User"
  },
  "RequestId": "F6F90F3D-4502-5877-B80B-97476F6AE2CC"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.