To set up the Google Drive integration, you will need to assemble an Authorized Redirect URL with the instructions below.
Assemble the URL for a Production Org
The URL structure will look like this:
https://[my domain name]--advpm.vf.force.com/apex/AuthenticateGDrive
To find your organization's My Domain name, go to Setup >> Quick Find: My Domain (see below).

Assemble the URL for a Sandbox
The URL structure will look like this:
https://[my domain name]--[sandbox name]--advpm.sandbox.vf.force.com/apex/AuthenticateGDrive
If you are installing into a sandbox, then you will need the name of the sandbox as well. To find your sandbox name, (while logged into the sandbox) look at the top of any page (see below).

Assemble Your URL
The URL structure will look like this:
https://[your salesforce my domain]--advpm.[domain partition value].vf.force.com/apex/AuthenticateGDrive
Org Type | Domain Partition Value |
---|---|
Scratch Org | scratch |
Developer Org | develop |
The redirect url assembled above should be added within the Google Cloud Console Project.
How To Update Your Authorized Redirect URL
- Go to https://console.developers.google.com and log in to the Google Cloud Console using your Google account.
- Once signed in, select the drop-down menu at the top-left corner and you will see a list of existing projects. Select the project that was set up to authorize your Google Drive integration previously.
- Under the Quick access section, click on the APIs and Services action link.
- From the sidebar, click on the Credentials menu item.
- Find your previously saved credential under OAuth 2.0 Client IDs section, and click on the name.
- On the screen that is opened, and under the section named Authorized Redirect URIs, click + Add URI button to add new rows and enter your assembled URL from above.
- Click on Save button.