Google Drive Permissions
To enable Data Access Security to interact with Google Apps, you must:
- Enable Google SDKs (Google Drive API, Admin SDK API).
- Create a service account and assign it domain-wide delegation.
- Delegate domain-wide authority to the service account.
Enabling Google SDKs
You must enable the Google Drive, Drive Activity, Admin SDK APIs.
Creating a Project
- Log in to your Google Apps developer console using an administrative account for your Google Apps domain.
- Select the Project dropdown list from the top bar and select New Project.
- Name the project (e.g., Data Access Security) and select Create.
- Wait for the project to be created and then select Select Project from the notification, or identify the project from the Dashboard page.
- Using the previous dropdown list, ensure the new project is selected, otherwise you may default to the previous project.
Refer to the Google Cloud Creating and managing projects documentation for more information.
Enabling Google APIs
Enable and add the following APIs:
- Google Drive API
- Drive Activity API
- Admin SDK API
Creating a Service Account and Assigning it Domain-Wide Delegation
-
In the top-left menu, choose APIs & Services > Credentials.
Important
This is an important step, failure to do so will mean you will create Credentials just for the last API you were in.
-
Select Create Credentials.
- Select Service account.
-
Enter a name for the new service account in "Service account name" (e.g. "svc_das").
Note
The user, domain, and service account name are all case sensitive.
-
Select Create then Done.
- Verify that the new account is listed under within Credentials, under the Service Accounts heading.
- Select on newly created account, or select the Edit icon.
- Select the Show Domain-wide Delegation dropdown list.
- Select Enable G Suite Domain-wide Delegation. If you get a message "To change domain wide delegation, a product name for the OAuth consent screen must be configured…", follow the prompts and create the Consent as instructed.
- Select Add Key > Create new key.
- Select P12 under Key type.
- Choose Project Owner as the role for this service account.
- Select Create.
- A certificate file (.p12) is downloaded to your computer. This file is required when creating the Google Drive application.
-
A popup window appears showing the password to the .p12 file. Save this password for future use when adding Google Drive to Data Access Security.
Note
This popup is displayed only once. Copy the password, or you will have to define a new service account.
-
Copy the svc account email address
<email>@<project_name>-123.iam.gserviceaccount.com
. This will be needed when authorizing the service account. - Select Show Domain-wide delegation and then Enable G Suite Domain wide delegation.
- Assign a Product Name as prompted, such as "DAS".
- Copy the Unique ID number (the Client ID) to use when delegating domain-wide authority to the service account.
- Select Save.
Delegating Domain-Wide Authority to the Service Account
- Go to Google administrative console.
- Select Security. If it is not listed, select the More controls button at the bottom of the screen.
- Select API Controls.
- Choose Domain Wide Delegation.
- Select Add new.
- Under Client ID, paste the “Unique ID” (this is the same as the Client ID) of the service account you created in the previous step.
-
Under Oath scopes (comma-delimited), paste the following in its entirety:
https://www.googleapis.com/auth/activity, https://www.googleapis.com/auth/admin.directory.group.member.readonly, https://www.googleapis.com/auth/admin.directory.group.readonly, https://www.googleapis.com/auth/admin.directory.user.readonly, https://www.googleapis.com/auth/admin.reports.audit.readonly, https://www.googleapis.com/auth/drive.readonly, https://www.googleapis.com/auth/drive.activity
-
Select Authorize.
Documentation Feedback
Feedback is provided as an informational resource only and does not form part of SailPoint’s official product documentation. SailPoint does not warrant or make any guarantees about the feedback (including without limitation as to its accuracy, relevance, or reliability). All feedback is subject to the terms set forth at https://developer.sailpoint.com/discuss/tos.