Error code: 80070005 - Unable to delete the user. Access is denied.

Error code: 80070005 - Unable to delete the user. Access is denied.

Issue description   

When attempting to delete a user in ADManager Plus, the operation fails, and an error message "Error code: 80070005: Unable to delete the user. Access is denied. This prevents administrators from removing the user from AD using the tool.

Possible causes   

  1. Insufficient permissions: The service account does not have the required privileges to delete user objects.

  2. Account protection enabled: The Protect object from accidental deletion option is enabled for the user.

  3. Locked or system-managed accounts: Certain accounts, like built-in system accounts, cannot be deleted.

  4. Domain controller connectivity issues: ADManager Plus cannot communicate with the assigned domain controller.

Prerequisites   

  • Admin access to ADManager Plus and ADUC.

  • Ensure ADManager Plus is pointed to the correct domain controllers.

Resolution  

Step 1: Disable Protect Object from Accidental Deletion (if enabled)

  1. Navigate to Management > User Management > Modify Single User. Search for the user and modify the user.

  2. Under the General tab, uncheck Protect object from accidental deletion.

  3. Click Update and try deleting the user.

Step 2: Verify domain controller connectivity  

  1. Open ADManager Plus.

  2. Navigate to Directory/Application Settings > Active Directory.

NotesNote: We recommend enabling Implement DC Sort Intelligence to identify the domain controller with latency.

  1. Test connectivity by pinging the domain controller:

  • Ping <DomainControllerName>

  • If connectivity issues exist, check the firewall rules and network configurations.

Step 3: Update service account credentials  

  1. Navigate to Directory/Application Settings > Active Directory and select the configured domain.

  2. Verify the service account details and update the password if it has changed.

Step 4: Verify ADManager Plus service account permissions  

  1. Please ensure that ADManager Plus is running as a service.

  2. Check that you have configured a service account in the Directory/Application Settings of ADManager Plus.

  3. Check if the service account used by ADManager Plus has necessary permissions:

    • Delete User Objects

    • Modify Object Permissions

  1. You can add the user to the Domain Admin group to ensure there are no missing permissions.

 Tips 

  • Disable the account first to prevent immediate disruptions.

  • Verify group memberships and remove the account from critical groups.

  • Transfer ownership of files, emails, and shared resources.

  • Use a staged deletion approach (disable, move to a holding OU, and delete after a retention period).

How to reach support 

If the issue persists, contact our support team here

                  New to ADSelfService Plus?