Google credentials
FortiDLP can be integrated with Google to:
- sync users from Google Workspace (see Google Workspace users ) and
- collect user activity events from Google Drive (see Google Drive Connector).
A single Google service account can be used to enable all or any of these features in FortiDLP, so we have therefore provided one set of instructions and indicated where you can optionally grant access for a feature.
A summary of the setup steps is as follows:
Step | Description | ||
---|---|---|---|
1. How to create a Google project and service account and retrieve credentials | First, you need to create a Google Cloud project and service account and then retrieve the service account's credentials by generating a private key. This will allow FortiDLP to make authorized calls to Google APIs. | ||
2. How to grant the service account API access permissions | Next, you need to grant the service account permissions which correspond to the features you want to enable. | ||
3. How to enable the Google Admin SDK API | Next, you need to enable the Google Admin SDK API for your project. | ||
4. How to add the service account credentials to FortiDLP |
Next, you need to add the credentials to the Google credentials modal, accessible from any Google feature configuration section in the FortiDLP Console's Admin settings.
|
||
5. How to integrate Google features with FortiDLP | Finally, depending on which integration permissions you have granted the service account, you need to configure and enable each feature in the relevant section of theFortiDLP Console's Admin settings. |
1. How to create a Google project and service account and retrieve credentials
- Go to https://console.developers.google.com/iam-admin/serviceaccounts.
- In the left-hand panel, click Service accounts.
- Click Create Project.
- In the New Project window, type a unique name for the project.
- In the Organization list, if your domain is not already selected, click your domain name.
- In the Location list, if your domain is not already selected, click Browse and click your domain name.
- Click Create.
- On the left-hand side of the menu bar, to the right of your project name, click the downward-pointing arrow icon.
- In the Select from window, make a note of the project ID that displays in the right column.
- Click Cancel to close the window.
- Below the menu bar, click Create Service Account.
- In the Service account name field, type a name for the service account.
The Service account ID field is automatically populated. - In the Service account description field, type a description of the service account.
- Click Create and continue.
- Click Continue.
- Click Done.
- Copy the service account's value displayed in the Client ID field in the table, and keep it somewhere safe.
- In the Actions column for the service account, click the three vertical dots icon, and then click Manage keys.
- In the Add key drop-down list, select Create new key.
- In the Create private key for <service account> dialog, leave the JSON radio button selected, and click Create.
You must store this file securely. The JSON file contains your service account credentials, which provide access to Google resources.
- Click Close.
2. How to grant the service account API access permissions
- Go to http://admin.google.com/ac/owl/domainwidedelegation.
- Sign in to your Google super administrator account.
- Click Add new.
- In the Client ID field, paste the service account's Client ID retrieved in 1. How to create a Google project and service account and retrieve credentials.
- Do at least one of the following:
- To allow FortiDLP to sync Google Workspace users, in the OAuth scopes (comma-delimited) field, paste the following:
https://www.googleapis.com/auth/admin.directory.user.readonly, https://www.googleapis.com/auth/admin.directory.group.readonly,
- To allow FortiDLP to collect Google Drive events, in the OAuth scopes (comma-delimited) field, paste the following:
https://www.googleapis.com/auth/admin.reports.audit.readonly, https://www.googleapis.com/auth/admin.reports.usage.readonly
- To allow FortiDLP to sync Google Workspace users, in the OAuth scopes (comma-delimited) field, paste the following:
- Click Authorise.
3. How to enable the Google Admin SDK API
- Go to https://console.developers.google.com/apis/api/admin.googleapis.com/overview.
- Select the project you created in 1. How to create a Google project and service account and retrieve credentials.
- Click Enable.
4. How to add the service account credentials to FortiDLP
The same Google credentials modal is used across all Google features, so credentials only need to be added once from any feature section.
- In the FortiDLP Console, on the left-hand side bar, click .
- Do one of the following:
- To add the credentials to the Google Workspace directory section:
- Do one of the following:
- Under Users, select Google directory.
- Under Integrations > Google, select Directory.
- Click Add new directory.
- Under Authentication settings, click Manage credentials.
- Do one of the following:
- To add the credentials to the Google Drive Connector section:
- Under Integrations > Google, select Connectors.
- On the top-right corner of the page, click Add new connector.
- Under Authentication, click Manage credentials.
- To add the credentials to the Google Workspace directory section:
- Click Create new.
- Under Authentication settings, click Manage credentials.
- Click Create new.
- In the Name field, enter a name to identify the credentials, for example, "Google service account credentials".
- In the Admin email field, enter the email of the super administrator account that was used to grant the service account API access permissions in 2. How to grant the service account API access permissions.
- In the Credentials JSON field, paste the credentials JSON file content retrieved in 1. How to create a Google project and service account and retrieve credentials.
- Click Verify.
FortiDLP will indicate whether the connection is successful and what feature permissions are granted. - Click Create.
- Click Cancel to close the modal.
5. How to integrate Google features with FortiDLP
Depending on which permissions you added to the service account, do the following:
- To sync users from Google Workspace to FortiDLP, follow the instructions in Adding a Google Workspace directory configuration to complete the integration.
- To collect Google Drive events, follow the instructions in Enabling the Google Drive Connector to complete the integration.