According to the Administrative Bulk Operations page, I can use
rake export:groups
to export the set of Groups and import new Groups using the same format. However, when I create a new Group following the format, the trace complains:
ActiveRecord::RecordInvalid: Validation failed: You cannot allow membership requests for a group without any owners. (ActiveRecord::RecordInvalid)
(If I don’t include the user_ids, it ignores the import.)
Here is the import file:
{“groups”:[{“id”:352,“name”:“NewGroup1”,“created_at”:“2026-02-18T17:56:01.807Z”,“automatic_membership_email_domains”:“”,“primary_group”:false,“title”:null,“grant_trust_level”:null,“incoming_email”:null,“bio_raw”:“This is a NewGroup.”,“allow_membership_requests”:true,“full_name”:“NewGroup1”,“default_notification_level”:3,“visibility_level”:2,“public_exit”:true,“public_admission”:false,“membership_request_template”:null,“messageable_level”:3,“mentionable_level”:3,“members_visibility_level”:2,“publish_read_state”:false,“user_ids”:[1,2]}]}
I don’t see any way to indicate which of the users is an owner.
Has anyone imported new Groups successfully and if so, what is the secret?