Enable API access from the G Suite Admin console in order to make requests to the Groups Migration API.
To enable the API, log in to your admin account, and select Security. If you do not see Security listed, select More controls and then select Security from the options shown in the gray box. Select API reference, and then select the checkbox to Enable API access. Save your changes.
Use the G Suite Groups Settings API to manage your groups' internal and external access, notifications, archiving and message moderation, and customized groups.
If your account has multiple domains, only administrators in your primary domain can use this version of the API. For more information about managing multiple domains, see the administrator help center.
Enable the Google Groups service
To use the API, the Google Groups service must be enabled.
Set up a Google APIs Console project
Use the APIs Console to manage and view your application's use of the API's traffic data, your team's membership, and authentication. For more information about the APIs Console, see the APIs Console help.
Set up a new project in the Google APIs Console, and activate Groups Migration API service for this project.