Using GAMADV-XTD3 6.10.01, I tried adding a Drive file ACL for an external Google Workspace domain on a Sheet:
gam returns:
User:
edi...@ourdomain.com, Drive File/Folder ID: 7XYqU_wtkSivMAUoVwQMcmf32JdHLMfPhcdWUxuj4XbC, Permission ID:
externaldomain.com, Add Failed: Bad Request. User message: "invalidLinkVisibility"
Pseudo user address, file ID, and external domain shown above for privacy/anonymity.
All shared drive settings are enabled for the shared drive in question:
☑ People outside your organization can be added to files
☑ People who aren't shared drive members can be added to files
☑ Viewers and commenters can download, print, and copy files
The error message seems to suggest a problem with link sharing for the file. Initially, it was set to Anyone on the internet with this link can view. I temporarily changed the setting to Anyone on the internet with this link can edit, then Restricted - Only people added can open with this link, for the Google Workspace org: Anyone in this group with this link can view, and finally Anyone in this group with this link can edit. After each change, I retried the command to add a Drive file ACL, and each time gam returned the same error.
The
Drive API offers little guidance for permissions of type
domain other than specifying a domain string argument.
Adding ACLs to resource calendars for external Google Workspace domains works as expected/desired. It seems this doesn't work similarly for Drive files?
Thanks in advance,
--
Ron