Move all resources from one group to another

How do I move all resources in group A to group B?

Situation:

  • Groups were created manually in Passbolt.
  • As Passbolt (rightfully) refused to sync LDAP groups with the same names, I renamed the old groups to be suffixed ‘old’.
  • The Passbolt LDAP sync then created new groups corresponding to the LDAP ones.

Now, resources from the old (manually created) groups need to be moved to the new (LDAP-created) ones. The sheer amount of resources makes it impossible to do so by hand.