This page will guide you through the steps to set up GDrive for Document Library.
- A GSuite project for Spencer is created
- The Spencer user (generic user that has impersonate rights) should have access to all the folders/files.
Enable GDrive API
#1 click on Enable APIS and SERVICES when you're in the dashboard section of your project on the console URL https://console.cloud.google.com/home/dashboard
You'll be guided to the overview see screenshot
#2 Type in drive in the search bar
#3 Click on Google Drive API, you'll be guided to a detailed screen (see screenshot). Click on ENABLE.
Create a Service Account
If you've enabled Single Sign-On you can skip this step.
#1 Click on the hamburger menu, click or hover over Services accounts
#2 You'll be guided to a service account overview screen. Click on Create Services Account
#3 Complete service account name with a useful name like Spencer Sync. Click on create.
#4 click on Continue for the optional permission step
#5 Click on Create Key and select JSON. Click create.
#6 Download the file and send it over to email@example.com
#1 Browse to https://admin.google.com and click on security
#2 scroll down and search for Advanced Settings and click on it
#3 Click on manage API client access
#4 If you've setup Single-Sign-On you'll find your service account already available if not create new:
client name - the unique id from your service account.
scopes (comma separated) and for Document Library we only need the read rights, as we'll only sync files :
#5 Click on Authorize and your done! Send a mail to firstname.lastname@example.org with the JSON file (if it's the first time) or that everything is set up for Gdrive.