Google Drive Addin

Browse and anonymize files from Google Drive (personal and Workspace) directly from cloak.business.


Prerequisites#

  • A Google account (personal Gmail or Google Workspace)
  • The Google Drive addin must be configured by an administrator (Google Cloud Console OAuth2 app)

Setup#

  1. Go to App → Addins → Google Drive
  2. Click Activate if not already active
  3. Click Sign in with Google
  4. A Google login popup opens — sign in with your Google account
  5. Grant the requested permissions (Google Drive access)
  6. The popup closes and you are connected

Browsing Files#

Google Drive starts at My Drive root. Navigate folders using breadcrumbs and the file list.

Supported file types in Google Drive:

TypeSourceProcessing
Google DocsNative Google formatExported as .docx then text extracted
Google SheetsNative Google formatExported as .xlsx then all cells read
Google SlidesNative Google formatExported as .pptx then slide text read
Word Document.docxText extraction via mammoth
Excel.xlsxAll sheets and rows extracted
PDF.pdfText extracted via pdfjs
PowerPoint.pptxText from all slides
Plain text.txt .csv .json .xml .mdDirect text read
Images.png .jpg .jpeg .bmp .tiffPII detection via OCR

Note: Google Docs native formats (Docs, Sheets, Slides) are automatically exported to the equivalent Office format before text extraction. No manual conversion needed.


Permissions#

PermissionReason
drive.readonlyBrowse and download files
drive.fileUpload anonymized results (only files created by this app)
profile, emailDisplay your account name and email

Saving Results#

Anonymized files are uploaded to the same folder as the original file with _anonymized appended to the filename. For example:

  • Original: report.pdf in /Documents/Q4/
  • Result: report_anonymized.txt in /Documents/Q4/

Processing Workflow#

  1. Select files — Browse to the folder and select one or more supported files. Multi-select via checkboxes.
  2. Analyze — The analyzer runs automatically on each file. Detected PII entities are listed with entity type, confidence score, and position. Google-native formats are exported to Office format first.
  3. Review operators — Assign anonymization operators per entity type: Replace, Redact, Mask, Hash, or Encrypt. Adjust confidence thresholds if needed.
  4. Anonymize — All confirmed entities are anonymized and the output is shown. Token cost is displayed before you confirm.
  5. Save to Drive — The anonymized output is uploaded to the same Drive folder with _anonymized appended. The original file is not modified. If you prefer, use Download to save the result locally without uploading.

Handling Shared Drives#

If your Google Workspace account has access to Shared Drives (Team Drives), they appear alongside My Drive in the file browser. Browsing and downloading from Shared Drives requires that your account has at least Viewer access to the shared drive. Uploading results back requires Editor or Content manager access. If the save fails due to insufficient permissions, use the Download option instead.


Re-authentication#

Google access tokens expire every hour but are automatically refreshed using the stored refresh token. As long as you do not revoke access in your Google Account settings, the connection stays active.


Disconnecting#

Click Sign out in the Connect step. This removes your tokens. You can reconnect at any time.

To revoke all access, visit myaccount.google.com/permissions and remove the cloak.business app.