I created a view with VBO to manage user accounts, and enabled the delete user accounts action. In account settings "admin/config/people/accounts" under "When cancelling a user account" I have it set to: "Disable the account and keep its content." when an account is canceled. However when deleting user accounts with Bulk Operations it deletes the account and all associated content. I think the proper operation would be for VBO to respect the default account cancellation setting. If this isn't possible it should either not deleting user created content when bulk deleting user accounts, or warn the user that this will occur.

Comments

bojanz’s picture

Category: bug » support
Status: Active » Fixed

No. Delete means delete. It is a generic action available to all entity types.
There's an open issue for adding a cancel action: #1799484: Add an action to allow user accounts to be cancelled.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

davidwhthomas’s picture

I just got bitten by this one, a client used "Delete item" on an editorial user and, despite the admin setting to "keep content" all content by that editor was also deleted, resulting in 100's of nodes deleted.

Luckily we have backups...

thijsvdanker’s picture

Status: Closed (fixed) » Needs review
StatusFileSize
new1.08 KB

I had the same thing here, site manager left the company.. new guy deleted the site manager's account.. site empty.
The cancel action sounds good, but a little warning up front might save some guys job / some developers night sleep? :)

joelcollinsdc’s picture

Status: Needs review » Reviewed & tested by the community

Dear Lord, please commit this!!!

notmike’s picture

We just had a content creator temp leave our university. He wrote hundreds of content items for a site we had in development.

This morning the site administrator used the delete command to remove the user, and then she sent us a panicked email. Fortunately, we had a recent copy of the database, and we were able to restore the deleted content.

We will probably try a patch from the following page:
Add an action to allow user accounts to be cancelled
https://drupal.org/node/1799484

bojanz’s picture

Title: Bulk Deleting Users does not respect Account Settings » Show warning when deleting user
Category: Support request » Feature request
Issue summary: View changes
Status: Reviewed & tested by the community » Needs work

Retitling. The patch adds action specific code in the middle of the confirmation page, so I can't commit it as-is, but I like the idea in any case.

bojanz’s picture

Status: Needs work » Closed (won't fix)

We now have a cancel action: [#8248027].
We'll make sure admin_views offers it instead of the delete one on the default people view.
So we should be good.

ianthomas_uk’s picture