Andy/Dan,
You can get what your want (some effort required).
gam show filelist initializes the query to "'me' in owners"
When you put query "xxx" on the command line, gam appends "and xxx" to the query.
Example: gam user testuser show filelist query "sharedWithMe=True" results in a query of "'me' in owners and sharedWithMe=True"
The result, all the files testuser has shared with itself. To get all files shared with testuser, we've got to negate the initial "'me' in owners".
Solution: gam user testuser show filelist query "sharedWithMe=True or not 'me' in owners"
The result, all files shared with testuser regardless of owner.
But Dan wanted all files shred with testuser where testuser is not the owner. I haven't figured that one out, so time to change the code.
I've added (this was initially suggested by another Gam user whose name I'vr forgotten, so thanks to him) a fullquery argument to show filelist.
fullquery lets you specify exactly the query you want.
All files shared with me regardless of ownership: gam user testuser show filelist fullquery "sharedWithMe=True"
Files owned by others shared with me: gam user testuser show filelist fullquery "sharedWithMe=True and not 'me' in owners"
Files owned by me shared with myself: gam user testuser show filelist fullquery "sharedWithMe=True and 'me' in owners"
If you get this version and are cuttently on a version earlier than 3.71, be sure to follow the directions about updating scopes.