Authorizing Zoho Mail to access G Suite
To authorize Zoho Mail to access your organization's G Suite users, email, contact, and calendar data, G Suite mandates the following authorization process. First, the organization's admin will have to create a G Suite service account, then permit Zoho Mail to access the required services in G Suite and then define the scopes that can be accessed by the service account that you are creating.
Ensure that this entire authorization process is done in a browser where no G Suite or Gmail account, other than the one from which you will be creating the service account is open.
This section will guide you through the process of setting up a service account in your G Suite account.
- Log in to the Google Developers Console with your admin credentials.
- Click on the dropdown next to your organization's name from the top of the window, and select New Project.
- Enter a name for your project in the Project Name field and click Create.
- Select the Create Service Account option.
- Enter a service name in the Service account name field, and a description for the service in the Service account description field, and click Create.
- In the next step, select the role that you want to assign to this service account. In the Role field, select Project > Owner, and click Continue.
- If you'd like to assign roles to users and admins, enter the relevant data and click Done.
- In the Create Key window, select the P12 option and click Create.
- Once you've created the key, you will notice that a file was downloaded onto your system. Please make sure that you save a copy of this file for later use during the migration.*
- Now click Close.
- Click the email address under the Email field. This will be the Service account email address. Make sure that you note this down, as you will have to enter it in the Zoho Mail Control Panel.*
- Click the Edit option in the Service Account Details window, and expand Show Domain-wide Delegation.
- Select the checkbox across the Enable G Suite Domain-wide Delegation option.
- Now enter a relevant product name in the Product name for the consent screen.
- The value generated in the Unique ID field is the Client ID. Please make note of this value as you will need it for later use during the authorization process. Now click Save.
You will have to enable access to some of these APIs. Follow the below instructions to enable access.
- Log in to the Google API Library.
- Locate the Gmail API and click Enable.
- Locate the Google Calendar API and click Enable.
- Locate the Contacts API and click Enable.
- Locate the CalDAV API and click Enable.
- Locate the Admin SDK and click Enable.
This section will aid you through granting access to the service account and defining the scopes that can be accessed by the service account.
- Login to your G Suite Admin account.
- Go to the Security menu, and select API Controls.
- Under Domain-wide delegation, click MANAGE DOMAIN-WIDE DELEGATION.
- In this page, click Add New.
- In the Client ID field, enter theClient ID that was generated.
- Copy the following values and paste it in the One or more API scopes field, and click Authorize.
Once done, this will grant access to the service account and the mentioned scopes will be made accessible.
Details to be entered in the Zoho Mail Control Panel:
* The service account email address and the file that was downloaded will be required for use in the Zoho Mail Control Panel.
- Enter the Super Admin email address of your G Suite organization account in the G Suite Super Admin Email Address field.
- Enter the Service account email address in the respective field.
- Finally, upload the file that you downloaded in the Private key file field and click Verify.
This will authorize your Zoho Mail account to access G Suite.