Google Drive
This integration is active and ready to use in Frihet.
Connect your Google Drive to Frihet. List, search, upload, and download files directly from your ERP. Store invoices and documents in organized folders without leaving Frihet.
What it does
With Google Drive connected:
- List files — View your Drive files and folders from Frihet
- Search documents — Find files by name or content
- Upload files — Save invoices, quotes, and documents to Drive
- Download files — Access documents stored in Drive from Frihet
- Auto-organization — Save documents in folders by client or year
Requirements
- Google account — Gmail, Google Workspace, or Google One
- Frihet Pro or higher
This integration uses OAuth with Google. You don't need to copy any API key or token. Simply authorize Frihet to access your Google Drive through a Google sign-in window.
This integration requires the VITE_GOOGLE_CLIENT_ID environment variable to be set on the Frihet server. If you're a Frihet Cloud user, this is already configured. If you self-host Frihet, see the REST API documentation.
Connect Google Drive to Frihet
Step 1: Start the connection
- Go to Settings → Integrations
- Find Google Drive
- Click Connect with Google
Step 2: Authorize in Google
- The Google sign-in window will open
- Select your Google account
- Review the permissions requested:
- View, create, and delete files in Google Drive
- View your account information
- Click Allow
Step 3: Verify connection
- Back in Frihet, you'll see "Connected" with your Google account
- Frihet will display your recent Drive files
- The integration is ready to use
How it works
Frihet uses the Google Drive API with an OAuth 2.0 redirect authorization flow:
- You click "Connect with Google" and authorize in the Google window
- Google generates access and refresh tokens
- Frihet stores both tokens encrypted (AES-256-GCM)
- With the access token, Frihet can list, search, upload, and download files
- The token refreshes automatically when it expires
- You never enter Google credentials directly in Frihet
Synced data
| Data | Direction | Frequency |
|---|---|---|
| File listing | Google Drive → Frihet | On demand |
| File search | Google Drive → Frihet | On demand |
| Upload files | Frihet → Google Drive | On demand |
| Download files | Google Drive → Frihet | On demand |
Features
List files
- From Frihet, go to the Google Drive section
- You'll see your recent files and folders
- Navigate through folders to find documents
Each file shows:
- Name
- Type (document, spreadsheet, PDF, image, etc.)
- Last modified date
- Size
Search files
- Use the Google Drive search bar in Frihet
- Search by filename or content
- Results include files across your entire Drive
Upload files
Upload documents from Frihet directly to Google Drive:
- Select the file to upload (invoice PDF, quote, document)
- Choose the destination folder in Drive
- The file uploads and becomes available in your Drive
Download files
- Navigate or search for the file in Drive from Frihet
- Click Download
- The file downloads to your device
Use cases
Automatic invoice backup
Every time you generate an invoice PDF, upload it to a Google Drive folder organized by year and month. Your accountant has access to the shared folder and can review invoices without needing to ask you for them.
Centralized project documentation
Store contracts, proposals, and project documents in Google Drive. From Frihet, access those documents while working on project billing without switching applications.
Share with your accountant
Create a "Frihet - Invoices 2026" folder in Drive and share it with your accountant. Upload invoices and documents from Frihet directly to that folder.
Import documents for expenses
You have vendor invoices stored in Drive. From Frihet, download them to attach as receipts when logging expenses.
Troubleshooting
"Error connecting with Google"
- Verify your Google account is active
- If you use a corporate Google Workspace, your admin may have restricted third-party apps
- Check that you don't have popup blockers preventing the Google window from opening
"I can't see my files"
- Verify you authorized access to Google Drive (not just Gmail)
- Files shared with you appear under "Shared with me"
- Refresh the view in Frihet
"I can't upload files"
- Check that you have available storage in your Google Drive
- The file must not exceed Google Drive's size limit
- Verify your session hasn't expired
"Session expired"
- Google may request re-authorization periodically
- Go to Settings → Integrations → Google Drive and click Reconnect
- You'll go through the Google authorization window again
"I want to disconnect"
- Go to Settings → Integrations → Google Drive
- Click Disconnect
- Tokens are deleted from Frihet
- Optionally, revoke access at myaccount.google.com/permissions