Sharing Documents¶
Learn how to share your Google documents with your AI agent and manage permissions effectively.
How Sharing Works¶
ExtraSuite uses Google's standard sharing model. Your AI agent has a service account email that works just like a regular Google account. When you share a document with this email, your agent can access it.
No Automatic Access
Your AI agent cannot access any document unless you explicitly share it. This is a security feature, not a limitation.
Finding Your Service Account Email¶
- Go to extrasuite.think41.com
- Sign in with your Google account
- Your service account email is displayed in Step 2
- Click Copy Email to copy it to your clipboard
Sharing a Document¶
Via Google Sheets UI¶
- Open your Google Sheet
- Click the Share button (top right)
- In the "Add people and groups" field, paste your service account email
- Choose permission level:
- Viewer - Read-only access
- Commenter - Can add comments
- Editor - Full read/write access
- Click Send (no notification will be sent to the service account)
Via Google Drive¶
- Open Google Drive
- Right-click the file or folder
- Select Share > Share
- Add your service account email
- Set permissions and click Done
Sharing a Folder¶
To share multiple documents at once:
- Create a folder in Google Drive
- Move your spreadsheets into the folder
- Share the folder with your service account email
- All documents in the folder will be accessible
Folder Sharing
Sharing a folder is more efficient if you work with many related documents. The agent will have access to everything in the folder.
Permission Levels Explained¶
Viewer (Read-Only)¶
Your agent can:
- Read all data in the spreadsheet
- Download/export data
- View formulas
Your agent cannot:
- Make any changes
- Add comments
- Modify formatting
Best for: Analysis tasks, data extraction, read-only reports
Commenter¶
Your agent can:
- Everything a Viewer can do
- Add comments to cells
- Reply to existing comments
Your agent cannot:
- Modify cell contents
- Change formatting
- Add/delete sheets
Best for: Review workflows, collaborative feedback
Editor¶
Your agent can:
- Full read and write access
- Modify cell contents and formulas
- Add, rename, delete sheets
- Change formatting
- Add charts and images
Best for: Data entry, report generation, automated updates
Best Practices¶
1. Start with Viewer Access¶
Grant Viewer access first to let your agent analyze the data. Only upgrade to Editor when you're ready for modifications.
2. Use Dedicated Sheets¶
For automated workflows, create dedicated spreadsheets rather than sharing important production data.
3. Make Backups¶
Before granting Editor access to important spreadsheets:
- File > Make a copy
- Keep the copy as a backup
- Share the original with your agent
4. Use Folder Organization¶
My AI Workflows/
├── Input Data/ (Viewer access)
├── Working Files/ (Editor access)
└── Output Reports/ (Editor access)
5. Descriptive Naming¶
Name your spreadsheets clearly so your AI agent (and you) can easily identify them:
Verifying Access¶
Test with the Verification Script¶
~/.claude/skills/gsheets/venv/bin/python ~/.claude/skills/gsheets/verify_access.py <spreadsheet-url>
This will confirm:
- ✅ Authentication is working
- ✅ Spreadsheet is accessible
- ✅ Permission level
Test with a Simple Prompt¶
Ask your AI agent:
If it works, sharing is correctly configured.
Common Sharing Scenarios¶
Personal Spreadsheets¶
Share individual spreadsheets directly with your service account email.
Team Spreadsheets¶
- Check with your team before sharing shared documents
- Service account edits will appear in version history
- Consider using a copy for testing
Company Templates¶
- Make a copy of the template
- Share the copy (not the original)
- Avoid modifying shared templates
Troubleshooting¶
"Spreadsheet not found" Error¶
- Verify the URL is correct
- Check that you've shared the document with the correct email
- Make sure you copied the full service account email (including the domain)
"Permission denied" Error¶
- Check the permission level (Viewer won't allow writes)
- Verify the document is shared with the correct service account
- Try removing and re-adding sharing
Can't Find Service Account Email¶
- Go to extrasuite.think41.com
- Sign in (you may have been logged out)
- The email is displayed in Step 2
Sharing Not Taking Effect¶
Google's sharing permissions are usually instant, but occasionally:
- Wait a few minutes
- Try removing and re-adding the share
- Check if the document has sharing restrictions
Security Considerations¶
Version History¶
All changes made by your AI agent appear in Google's version history:
- Open the spreadsheet
- File > Version history > See version history
- Look for edits by your service account email
Audit Trail¶
Every action is logged under your service account identity, making it easy to:
- Track what changes were made
- Revert unwanted changes
- Review agent activity
Restricting Access¶
See Revoking Access for how to remove access when needed.
Next: Learn how to revoke access when you no longer need it.