Using GAM to filter files with a label

305 views
Skip to first unread message

William Yox

unread,
Sep 28, 2023, 11:01:26 AM9/28/23
to GAM for Google Workspace
Hello all,

Using the example in the Wiki, I am trying to get a list of files that have a specific label attached. 

gam config csv_output_row_filter "labelInfo.labels.0.regex:MyLabelID" user myuser print filelist select sharedwithme fields id,name,labelinfo includelabels MyLabelID

I received an error and I'm not sure where to go from here. The syntax seems correct.

ERROR: Config File: C:\Users\myprof\.gam\gam.cfg, Section: DEFAULT, Item: csv_output_row_filter, Value: "labelInfo.labels.0.regex": "MyLabelID", Expected: date|time|count|text<Operator><Value> or boolean:<Boolean> or regex:<RegularExpression> or data:<DataSelector>

Any help would be appreciated.

-Bill

Ross Scroggs

unread,
Sep 28, 2023, 11:09:05 AM9/28/23
to google-ap...@googlegroups.com
The . in front of regex should be a :
gam config csv_output_row_filter "labelInfo.labels.0:regex:MyLabelID" user myuser print filelist select sharedwithme fields id,name,labelinfo includelabels MyLabelID
----
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/748a49dd-abcc-42c6-8ea3-8e5d475857bbn%40googlegroups.com.

William Yox

unread,
Sep 28, 2023, 11:19:28 AM9/28/23
to GAM for Google Workspace
Thank you Ross...

Lunch time!

Reply all
Reply to author
Forward
0 new messages