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 [email protected], it is not displayed in the commands:

gam user [email protected] print filelist fields id,title,mimetype,owners.emailaddress showownedby others

or

gam user [email protected] 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 [email protected] 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 [email protected] is not a member of the Team Drive).
  2. Get the FILE1 link of shared file and access with the user [email protected]
  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 [email protected]
  5. Execute the gam commands above and FILE1 are not listed as expected, only FILE2 are listed

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions