A little recap, maybe is useful for other users:
the command
gam user USER1 show filelist query "not 'me' in owners or 'USER2' in owners" allfields todrive
returns a list of all files and folders owned by USER2 that is stored in USER1 Drive.
So, given that list of ID's, is simple to change the owner of that files with the command
gam user USER2 update drivefileacl FILEID USER1 role owner transferownership true
using powershell, bash scripting or CSV capabilities in GAM (the choice is yours!).
This is useful in organization that use a general user to store and share files for the entire organization, and want to have more control over permissions (and avoid accidental deletes/orphaned files).
If the script is triggered every day (or every hour...again, the choice is yours) is a huge help to prevent data loss.
Just to clarify: actually I haven't found a command that can track down files owned by a user INSIDE a specific folder; the command above find files owned by USER2 inside the entire USER1 Drive.
In a previous post I've said that the file ID contains the Folder ID + File ID, but Isadly it's not true... the prefix part of the ID identify the user, not the folder.
The only way to identify files in specific folder is to use Google Apps Scripting (do a search in StackExchange/StackOverflow and you will find some little useful scripts for doing so), but in my case the command above is more than enough :)
Manuel