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
- Enable the Groups for Business in your Google Workspace.
- Enable the Groups Migration API in your Google Cloud Platform.
- Create credentials of the Service account type with owner role and enable their "G Suite Domain-wide Delegation".
- Create a JSON access key for the service account.
- 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
-
Put the JSON access key in the script directory and rename it
access-ggroups.json
. -
Put the mbox file in the script directory.
-
Install the dependencies:
pip install
-
Run the script and follow the instructions:
python ggroups-mbox-import.py