Skip to content

Print shared files/folders owned by others inside a Team Drive #1797

@jczucco

Description

@jczucco

If you have one file or folder inside a Team Drive shared with all users in domain to userX@domain.com, it is not displayed in the commands:

gam user userX@domain.com print filelist fields id,title,mimetype,owners.emailaddress showownedby others

or

gam user userX@domain.com print filelist fullquery "sharedWithMe=True" showownedby others

The commands above only show all files or folders shared to a domain but not shared files inside a Team Drive. The user userX@domain.com is not a member of the Team Drive, but have permission to access/write the file inside the Team Drive.

Full steps to reproduce the issue:

  1. Create a FILE1 inside a Team Drive shared with all users in domain with a link (user userX@domain.com is not a member of the Team Drive).
  2. Get the FILE1 link of shared file and access with the user userX@domain.com
  3. Create a FILE2 outside a team drive shared with all users in domain with a link
  4. Get the FILE2 link of shared file and access with the user userX@domain.com
  5. Execute the gam commands above and FILE1 are not listed as expected, only FILE2 are listed

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions