Add multiple filters when fetching reports

65 views
Skip to first unread message

Ashish Jain

unread,
Jun 12, 2024, 10:40:20 PM6/12/24
to GAM for Google Workspace
I am trying to fetch all documents that had a visibility change of "Anyone with link" with the below command

gam config auto_batch_min 1 csv_output_no_escape_char true redirect csv $permissions multiprocess report drive filter "visibility==people_with_link" events change_document_visibility,change_document_visibility_hierarchy_reconciled start -1d

Is there a way to add multiple filters like 

visility==people_with_link and primary_event==true and new_value==people_with_link


Ross Scroggs

unread,
Jun 13, 2024, 12:49:01 AM6/13/24
to google-ap...@googlegroups.com
Ashish,


Scroll down to Query Paramaters/filter.

Ross
----
Ross Scroggs



--
You received this message because you are subscribed to the Google Groups "GAM for Google Workspace" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/d98f7810-f080-4e3c-ac62-113c4ec18282n%40googlegroups.com.

Ashish Jain

unread,
Jun 13, 2024, 1:20:16 AM6/13/24
to GAM for Google Workspace
Thanks, Ross. This worked. Here is the modified command

gam config auto_batch_min 1 csv_output_no_escape_char true redirect csv $permissions multiprocess report drive filter "visibility==people_with_link,new_value==people_with_link,primary_event==true" events change_document_visibility,change_document_visibility_hierarchy_reconciled start -1d

As a follow-up, this command also returns shared drive events. Is there a way I can run a few commands to get document metadata including permissions for all doc_ids that are in shared drives? I understand we need owners information for shared drives, but just looking at a series of commands that can help get the information.

Reply all
Reply to author
Forward
0 new messages