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:
- 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).
- Get the FILE1 link of shared file and access with the user userX@domain.com
- Create a FILE2 outside a team drive shared with all users in domain with a link
- Get the FILE2 link of shared file and access with the user userX@domain.com
- Execute the gam commands above and FILE1 are not listed as expected, only FILE2 are listed
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: