I want to change the author of multiple nodes. I have set up a new action by going to /admin/config/system/actions and then selecting "CREATE AN ADVANCED ACTION" and then "Change the author of content..."

In my view of the content type I have added the "Node operations bulk form" field.

My problem is that when I try to update any content using this method I get the error "No access to execute Change the author on the Content [TITLE]'. The user has a role giving permission to edit the content.

I have looked at the code that generates this error - it is in core/modules/system/src/Plugin/views/field/BulkForm.php

        // Skip execution if the user did not have access.
    if (!$action->getPlugin()->access($entity, $this->view->getUser())) {
      $this->drupalSetMessage($this->t('No access to execute %action on the @entity_type_label %entity_label.', [
        '%action' => $action->label(),
        '@entity_type_label' => $entity->getEntityType()->getLabel(),
        '%entity_label' => $entity->label()
      ]), 'error');

Anyone any idea what I can do to get this to work? I need to change the author of thousands of nodes, so I need to work this out.

  • Is that a custom plugin? There is no such action plugin in core I think. Can you share its code?
    – Berdir
    Dec 2, 2016 at 19:47
  • Change the author of content... is in core.
    – James
    Dec 6, 2016 at 12:18
  • why not run a drush script ?
    – rémy
    Dec 21, 2016 at 13:15

1 Answer 1


I just created a module for this, which allows you to change the Author as a batch operation on /admin/content, with a custom selection step to pick the new author.

Module: change_author_action

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.