Gam 7.46.06 issue?

85 views
Skip to first unread message

Eric Dannewitz

unread,
Jul 3, 2026, 12:14:45 PMJul 3
to google-ap...@googlegroups.com
This works
gam print users query "isSuspended=true isArchived=true"

this does not
gam redirect csv temp.csv print users query "isSuspended=true isArchived=true"
nor does this
gam redirect stdout temp.txt print users query "isSuspended=true isArchived=true"

No files generated. Completely empty directory.

Eric Dannewitz

Information Technology & Data Coordinator

Acalanes Union High School District

District Office Technology Department

Google Cloud Certified Administrator & G Suite

Google Certified Educator Level 1 & 2

Dante A/V Certified Level 1 & 2 & 3

Extron AV Associate,Github Repositories

p: 925.280.3980 ext 4309

e: edann...@auhsdschools.org

 


Ross Scroggs

unread,
Jul 3, 2026, 12:25:00 PMJul 3
to google-ap...@googlegroups.com
Do: gam config verify variables drive_dir


Look for temp.csv in the displayed directory.


You can also do the following to write the file in your working directory.

gam redirect csv ./temp.csv print users query "isSuspended=true isArchived=true"

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 visit https://groups.google.com/d/msgid/google-apps-manager/CAG-f%3DMEF1CXwnaGhsb7sOpNUJN_AAFqofV6AT1w%2B%3DWOKUgAbZw%40mail.gmail.com.

Eric Dannewitz

unread,
Jul 3, 2026, 6:45:46 PMJul 3
to google-ap...@googlegroups.com
Oh, I see what I did. I took out the filetempname = '.\\suspendedusers.csv' in my code and just made it 'suspendedusers.csv' and GAM was putting it in the drive_dir, not the python temp directory specified in my script. Didn't think I needed that as it's been forever since I looked at this script, and I was redoing stuff cuz.......I think I code better now.

My bad. It's working now. Thanks

Reply all
Reply to author
Forward
0 new messages