Skip to content

feat(drive): add --domain flag to share command#192

Merged
steipete merged 3 commits intoopenclaw:mainfrom
Danielkweber:daniel/feat/drive-share-domain
Feb 7, 2026
Merged

feat(drive): add --domain flag to share command#192
steipete merged 3 commits intoopenclaw:mainfrom
Danielkweber:daniel/feat/drive-share-domain

Conversation

@Danielkweber
Copy link
Copy Markdown
Contributor

Summary

  • Adds --domain flag to gog drive share for sharing with an entire Google Workspace domain (e.g. gog drive share <id> --domain=suno.com --role=writer)
  • Creates a type: "domain" permission via the Drive API, enabling the "Anyone in <org> with the link" sharing mode
  • Updates gog drive permissions to display domain names in the EMAIL column

Usage

# Share folder with entire domain as editor
gog drive share <fileId> --domain=example.com --role=writer

# Share as viewer (default)
gog drive share <fileId> --domain=example.com

# With discovery enabled
gog drive share <fileId> --domain=example.com --role=writer --discoverable

Test plan

  • All existing drive tests pass (35/35)
  • Added domain share test to drive_commands_more_test.go
  • Added domain role validation test to drive_errors_test.go
  • Manually verified: shared a folder with suno.com domain, confirmed correct permission via gog drive permissions

🤖 Generated with Claude Code

Danielkweber and others added 3 commits February 6, 2026 10:43
Allow sharing files/folders with an entire Google Workspace domain
(e.g. `gog drive share <id> --domain=example.com --role=writer`).
This creates a "domain" type permission in the Drive API, enabling
the "Anyone in <org> with the link" sharing mode.

Also updates `permissions` output to display domain names.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@steipete steipete merged commit e3cb940 into openclaw:main Feb 7, 2026
1 check passed
@steipete
Copy link
Copy Markdown
Collaborator

steipete commented Feb 7, 2026

Landed via temp rebase/merge onto main.

Thanks @Danielkweber!

@Danielkweber
Copy link
Copy Markdown
Contributor Author

Danielkweber commented Feb 7, 2026 via email

klodr pushed a commit to klodr/gogcli that referenced this pull request Apr 22, 2026
* feat(drive): add --domain flag to share command

Allow sharing files/folders with an entire Google Workspace domain
(e.g. `gog drive share <id> --domain=example.com --role=writer`).
This creates a "domain" type permission in the Drive API, enabling
the "Anyone in <org> with the link" sharing mode.

Also updates `permissions` output to display domain names.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* feat(drive): add --to target for share (openclaw#192) (thanks @Danielkweber)

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Peter Steinberger <steipete@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants