Authorizing the Coveo Connector to Access Your Users Gmail Mailboxes
To authorize the connector to access your users Gmail mailboxes
-
Go to the Google Developers Console, and log in using a Google Account with administrator credentials.
-
At the left of the Filter by name, ID or label input, click the drop-down menu, and then select the organization in which you want to create the Google Developer Console project.
-
Create an API project for the Coveo connector (CES 7) or source (Coveo Cloud):
Note: If you already have created a project for the Google Drive for Work connector (CES 7) or source (Coveo Cloud), you can click this Project name and go to step 4.
-
In the Manage resources panel, click Create a project.
-
(When your project limit is exceeded) In the Increase Project Limit page, click Request increase, and then complete the form.
-
In the New Project dialog page, enter the project required information.
-
Enter a Project name.
Note: The project ID is automatically created based on the project name. You can always modify the project ID by clicking Edit.
-
(When you create the first project in your organization only) Answer the Please email me updates regarding feature announcements, performance suggestions, feedback surveys and special offers. question using the Yes or No checkbox.
-
(When you create the first project in your organization only) After you have read and agree to the Google Play Android Developer API Terms of Service, click the Yes check box.
-
Click Create.
-
-
-
Enable the required Google APIs.
-
Access the API Library page by clicking Google APIs in the top menu.
-
In the API Library page, enable the Gmail API and Admin SDK APIs:
-
Under Google APIs, use the search box to search and select Gmail API or Admin SDK.
-
In the Gmail API or Admin SDK page, in the action bar, click Enable.
-
In the action bar, click the back button (
).
-
Repeat the procedure for the other API.
Note: When you selected an existing Google Developer Console project, you can skip the rest of the procedure. You must now authorize the connector to access your Google Apps for Work (see Authorizing the Coveo Connector to Access Your Google Apps for Work).
-
-
-
Create a service account project for the Coveo connector (CES 7) or source (Coveo Cloud).
-
Access the Service accounts page:
-
At the top of the sidebar on the left, click the Product & services icon (
).
-
In the sidebar on the left, hover IAM & Admin, and then click Service accounts.
-
-
In the Service Accounts page, in the action bar, click Create service account.
-
In the Create service account dialog box:
-
If not already done, set a product name (e.g., Coveo Connector) that will appear on the consent screen by clicking Configure consent screen, providing the requested information, and then clicking Save.
Note: The consent screen will appear when the application requests read access to the users' data.
-
Enter a Service account name.
Example: Coveo Connector
-
(Optionally) Edit the Service account ID or generate another one by clicking the refresh icon
.
Note: The service account ID is automatically created based on the service account name.
-
Click the Role drop-down list menu, and then select Service account > Service account admin.
-
Select the Furnish a new private key checkbox, and then under Key type, select the P12 checkbox.
-
Select the Enable G Suite Domain-wide Delegation checkbox.
-
Click Create.
Note: A private key is automatically downloaded as a Personal Information Exchange (.p12) file in your browser download folder.
-
-
In the Service account created dialog box that appears, take note of the private key password, and then click Close.
-
-
(For CES 7 customers only) Using an administrator account, connect to your Coveo Master server, and then copy the downloaded private key [GUID]-privatekey.p12 file to a folder accessible to Coveo Enterprise Search, typically in the [Index_Path]\Config folder.
-
Back in the Service Accounts page, on the service account row you just created, in the Options column, click View Client ID.
-
In the Client ID Service account client page, take note of the following information that you will need later when configuring your Gmail for Work source:
-
Client ID
-
Email address (under the Service account name)
-
-
Ensure the Gmail API request limit is high enough to reduce throttling errors (GMAIL_THROTTLING_ERROR).
-
Access the Gmail API page:
-
In the top menu, click Google APIs.
-
In the Dashboard page, in the enabled APIs table, click Gmail API.
-
-
In the Gmail API page, select the Quotas tab.
-
In the Quotas tab, ensure the Queries per 100 seconds per user limit is a high number such as 25,000 queries.
-
What's Next?
You must modify security parameters in your Google Apps account to grant the connector (CES 7) or source (Coveo Cloud) access to your Google Apps for Work (see Authorizing the Coveo Connector to Access Your Google Apps for Work).