Printing number of files owned by user

66 views
Skip to first unread message

Kirk Leman

unread,
May 9, 2019, 2:14:50 PM5/9/19
to GAM for G Suite
How can we print the number of files owned by each user? (Can we include native drive format and non-native files)

Ross Scroggs

unread,
May 9, 2019, 2:20:18 PM5/9/19
to google-ap...@googlegroups.com
Kirk,

With Advanced Gam (https://github.com/taers232c/GAMADV-XTD3) you can.

Display format

$ gam user testuser1 show filecounts

Getting all Drive Files/Folders that match query ('me' in owners) for test...@domain.com

Got 134 Drive Files/Folders for test...@comain.com...

User: test...@rdschool.org, Drive Files/Folders: 134

  application/octet-stream: 9

  application/pdf: 1

  application/vnd.google-apps.document: 37

  application/vnd.google-apps.folder: 52

  application/vnd.google-apps.form: 2

  application/vnd.google-apps.site: 2

  application/vnd.google-apps.spreadsheet: 12

  application/vnd.oasis.opendocument.text: 1

  application/x-gzip: 1

  audio/x-wav: 1

  image/jpeg: 2

  message/rfc822: 1

  text/csv: 3

  text/plain: 9

  video/x-dv: 1


CSV format

$ gam user testuser1 print filecounts

Getting all Drive Files/Folders that match query ('me' in owners) for test...@domain.com

Got 134 Drive Files/Folders for test...@domain.com...

User,Total,application/octet-stream,application/pdf,application/vnd.google-apps.document,application/vnd.google-apps.folder,application/vnd.google-apps.form,application/vnd.google-apps.site,application/vnd.google-apps.spreadsheet,application/vnd.oasis.opendocument.text,application/x-gzip,audio/x-wav,image/jpeg,message/rfc822,text/csv,text/plain,video/x-dv

test...@rdschool.org,134,9,1,37,52,2,2,12,1,1,1,2,1,3,9,1


Ross
On Thu, May 9, 2019 at 11:14 AM Kirk Leman <kle...@ucsd.edu> wrote:
How can we print the number of files owned by each user? (Can we include native drive format and non-native files)

--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/3cdacf81-6f12-4400-97d7-516163cf07b2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--

Kirk Leman

unread,
May 9, 2019, 5:15:01 PM5/9/19
to GAM for G Suite
Thanks Ross - I'm trying to install ADVgam now per you instructions, but I keep getting an error after the browser authentication URL opens and auth with the Super Admin account: 

Failed to find "code" in the query parameters of the redirect.
Try running with --noauth_local_webserver.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.


--
Ross Scroggs

Ross Scroggs

unread,
May 9, 2019, 5:35:58 PM5/9/19
to google-ap...@googlegroups.com
Kirk,

Say: gam config no_browser true save
Then retry.

Ross

To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.


--
Ross Scroggs

--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.

To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.

For more options, visit https://groups.google.com/d/optout.


--
Reply all
Reply to author
Forward
0 new messages