The following gam command works for searching files in all users’ mydrives:
gam all users show filelist query "fullText contains 'keyword'" fields id,title,owners,alternatelinkI’m trying to figure out how to do something similar for Shared Drives.
I already have a CSV that includes an
id with the drive IDs of every Shared Drive, and it@ is a service account that is added to every Shared Drive.
However, I still can’t figure out the actual gam command I need to make to search shared drives.
I assume it is something like this (but this gives syntax errors so obvi it’s not it):
gam csv "$ids_file" gam user i...@domain.com show filelist drive ~id query "fullText contains 'keyword'" fields id,title,owners,alternatelink