Symptoms
After you delete a user in Alibaba Cloud IDaaS (Enterprise Identity Access Management) with account synchronization enabled, the corresponding RAM user is not deleted.
Possible causes
-
The RAM user is in a special state, for example, it has a bound MFA device, a configured AccessKey, or is a member of a user group.
-
If the deleted user's organization is outside the defined synchronization scope, IDaaS does not trigger the deletion.
-
An invalid parameter configuration causes the synchronization request to fail.
Precautions
-
Check for critical associations: Before you delete a RAM user, ensure that no critical resources or permission configurations are associated with the user.
-
Assess the impact: After a RAM user is deleted, the user and its assumed roles are forcibly signed out and cannot be recovered.
-
Permission management: Ensure the administrator performing these operations has sufficient permissions, such as the
AliyunRAMFullAccesspolicy.
Solution
IDaaS cannot automatically synchronize the deletion of RAM users that are in a special state. You must perform the following steps manually.
Step 1: Clear the special state
-
Remove the user from user groups:
-
Sign in to the Alibaba Cloud RAM console.
-
In the left-side navigation pane, choose .
-
Find the target RAM user and click the username to view its details page.
-
In the user groups section, remove the user from all user groups.
-
-
Unbind the MFA device (if applicable):
-
In the RAM console, go to the details page of the target RAM user.
-
On the tab, unbind the MFA device in the Security Information Management section. For more information, see Unbind an MFA device for a RAM user.
-
-
Delete AccessKeys (if any):
-
Go to the AccessKey management section.
-
Delete all configured AccessKeys.
-
Step 2: Manually delete the RAM user
-
Sign in to the Alibaba Cloud RAM console.
-
In the left-side navigation pane, choose .
-
Find the target RAM user and in the Actions column, click Delete.
-
Follow the on-screen instructions to complete the deletion.