OptimiDoc Server Help Center

Google Drive Destination

The Google Drive destination uploads scanned documents to Google Drive using OAuth 2.0. Register an OAuth client in Google Cloud, authorise OptimiDoc once, and scans are delivered to a folder in the connected Drive account.

image-20260826-122814.png

How It Works

Google Drive is a delivery-only destination. OptimiDoc uploads each output document to the folder named in Folder using the Google Drive API. Authentication uses OAuth 2.0: after you authorise the connection once, OptimiDoc stores a refresh token and uses it to obtain fresh access tokens automatically, so the destination keeps working without repeated sign-ins.


Configuration

Setting

Description

Client ID

OAuth 2.0 client ID from the Google Cloud console.

Client Secret

OAuth 2.0 client secret paired with the client ID.

Folder

Name of the target folder in Google Drive (e.g. MyFolder) where documents are uploaded.

Note: From the release following 26.07 the form shows only the fields above; Google Drive authentication is OAuth 2.0 only. In 26.07 and earlier the form also displayed a Service Account Email field that had no effect.


Google Cloud Setup

  1. Create (or select) a project in the Google Cloud console.

  2. Enable the Google Drive API for the project.

  3. Create an OAuth 2.0 Client ID of type Web application.

  4. Add your OptimiDoc server's OAuth callback URL as an authorised redirect URI.

  5. Copy the generated Client ID and Client Secret into the destination configuration.


Authorising the Connection

OAuth destinations are authorised interactively after they are created:

  1. Enter the Client ID, Client Secret, and Folder, then Save.

  2. Re-open the destination. An OAuth Authorization card shows the current status (Not authorized or Authorized).

  3. Click Authorize. OptimiDoc redirects your browser to Google's consent page; after you grant access you are returned to OptimiDoc and the refresh token is stored with the destination.

  4. Once authorised, use Test Connection to confirm access. Test Connection is hidden until the destination is authorised.

Use Re-authorize to refresh access, or Revoke authorization to clear the stored tokens. Revoking removes only OptimiDoc's local copy of the tokens -- the remote provider is not contacted -- and leaves the rest of the configuration intact, so the destination simply returns to the Not authorized state until you authorise it again.


When to Use

Use Google Drive for organisations standardised on Google Workspace. For Microsoft 365 use OneDrive or SharePoint Online; for other consumer or team cloud storage use Dropbox or Box.