Google Groups Migration from Mbox

This Python tool allows you to import the messages contained in an mbox file to an existing Google Group on Workspace for Business.

Prerequisites

  1. Enable the Groups for Business in your Google Workspace.
  2. Enable the Groups Migration API in your Google Cloud Platform.
  3. Create credentials of the Service account type with owner role and enable their "G Suite Domain-wide Delegation".
  4. Create a JSON access key for the service account.
  5. Add a Domain-wide Delegation for your service account (https://admin.google.com/ac/owl/domainwidedelegation) with the scope: https://www.googleapis.com/auth/apps.groups.migration

Usage

  1. Put the JSON access key in the script directory and rename it access-ggroups.json.

  2. Put the mbox file in the script directory.

  3. Install the dependencies:

    pip install
    
  4. Run the script and follow the instructions:

    python ggroups-mbox-import.py