Authorizing the Coveo Connector to Access Your Google Drive
To authorize the connector to access the Google Drive of your users
-
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 Gmail for Work (CES 7) or source (Coveo Cloud), you can select this project and go to step 5.
-
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 Google Drive API or Admin SDK.
-
In the Google Drive 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 (CES 7) or source (Coveo Cloud) 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).
-
In the sidebar on the left, select Credentials.
-
In the Credentials page, click the Create credentials drop-down list menu, and then select Service account key.
-
In the Create service account key page:
-
Click the Service account drop-down list menu, and then select New service account.
-
Click the Role drop-down list menu, and then select Service account > Service account admin.
-
In the first box, 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.
-
Under Key type, select P12.
-
Click Create.
Note: A private key is automatically downloaded as a Personal Information Exchange (.p12) file in your browser download folder.
-
In the New private key 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 Credentials page, perform a G Suite domain-wide delegation.
-
At the top right of the Service account keys table, click Manage service accounts.
-
At the right end of your service account row, click the more icon (
), and then select Edit.
-
In the Edit service account dialog that appears:
-
Click the Enable G Suite Domain-wide Delegation check box
-
In the Product name for the consent screen box, enter the product name (e.g., Coveo Connector) that will appear when the application requests read access to the users' data.
-
Click Save.
-
-
-
Back in the Service Accounts page, on the service account row you just created, in the Options column of your service account row, click View Client ID.
-
In the Client ID Service account client page, then take note of the following information that you will need later to configure your Google Drive for Work source:
-
Client ID
-
Email address (under the Service account name)
-
What's Next?
You must modify security parameters in your Google Apps account to grant the connector access to your Google Apps for Work (see Authorizing the Coveo Connector to Access Your Google Apps for Work).