How to pull the size of a user's mailbox size.

3,701 views
Skip to first unread message

Chuck W. Williams

unread,
Jul 12, 2017, 2:05:51 PM7/12/17
to GAM for G Suite
Hi all,

I can't seem to find the command to file the size of a user's mailbox..is there such a command in GAM?

Regards

Ross Scroggs

unread,
Jul 12, 2017, 4:25:30 PM7/12/17
to google-ap...@googlegroups.com
Chuck,

I don't see much in the APIs, this will show you the total number of messages for a user.
gam <UserTypeEntity> show gmailprofile

<UserTypeEntity> ::=

                (all users)|

                (user <UserItem>)|

                (users <UserList>)|

                (group <GroupItem)|

                (ou|org <OrgUnitPath)|

                (ou_and_children|ou_and_child <OrgUnitPath>)|

                (courseparticipants <CourseID>)|

                (students <CourseID>)|

                (teachers <CourseID>)|

                (file <FileName>)|

                (csvfile <FileName>:<FieldName>)|

                (license|licenses|licence|licences <SKUIDList>)|

                (query <QueryUser>)


Ross

--
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-manager+unsub...@googlegroups.com.
To post to this group, send email to google-apps-manager@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/3d62b25e-097d-4b78-8dd1-b5ddfcdf2e59%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Jay Lee

unread,
Jul 12, 2017, 4:28:06 PM7/12/17
to google-ap...@googlegroups.com
The Drive API (oddly enough) had Drive, photos and Gmail sizes in the about.get() API call at one point....

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



--

--
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-manager+unsub...@googlegroups.com.
To post to this group, send email to google-apps-manager@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.

Chuck W. Williams

unread,
Jul 12, 2017, 4:30:19 PM7/12/17
to GAM for G Suite
I thought I saw it someone before.  Didn't this command pull mailbox size also..."gam report users todrive user us...@domain.com"?
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.



--

--
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-manager+unsub...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.

Ross Scroggs

unread,
Jul 12, 2017, 4:44:09 PM7/12/17
to google-ap...@googlegroups.com
Chuck,

Here are the headers relevant to Gmail that report users gives:

gmail:is_gmail_enabled,gmail:num_emails_exchanged,gmail:num_emails_received,gmail:num_emails_sent,gmail:num_spam_emails_received,gmail:last_access_time,gmail:last_imap_time,gmail:last_interaction_time,gmail:last_pop_time,gmail:last_webmail_time


Ross


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



--

--
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-manager+unsubscribe...@googlegroups.com.

--
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-manager+unsub...@googlegroups.com.
To post to this group, send email to google-apps-manager@googlegroups.com.

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



--

A J Uddin

unread,
Feb 7, 2018, 7:40:24 AM2/7/18
to GAM for G Suite
gam report users todrive user us...@domain.com" does the job for me. it shows 'accounts:gmail_used_quota_in_mb' is there anyway to run gam report command for a bunch of user using csv?

Ross Scroggs

unread,
Feb 7, 2018, 7:47:30 AM2/7/18
to google-ap...@googlegroups.com
A J,

With basic Gam its one user or all users.
Whth Advanced Gam you would say: gam report users todrive select csvfile FileName:FieldName

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.
Message has been deleted

Ross Scroggs

unread,
May 4, 2021, 2:47:51 PM5/4/21
to google-ap...@googlegroups.com
AJ,

What is: gam version

Ross

On Tue, May 4, 2021 at 11:42 AM Arjun Pravin <ar...@wave.com> wrote:
Hey Ross - I get this error when I try to run that 

ERROR: select is not a valid argument for "gam report"

Thanks for your help btw
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.


--

Arjun Pravin

unread,
May 4, 2021, 5:41:09 PM5/4/21
to google-ap...@googlegroups.com
I get this:

GAM 6.01 - https://git.io/gam - pyinstaller


You received this message because you are subscribed to a topic in the Google Groups "GAM for Google Workspace" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-apps-manager/6fR-D9P3IYI/unsubscribe.
To unsubscribe from this group and all its topics, 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/CAJkvRS-%2BjPBZnV2h4HHM0WPN1oWiPWfZ_3Yp2ULrMveWYgDbXQ%40mail.gmail.com.

Ross Scroggs

unread,
May 4, 2021, 5:55:08 PM5/4/21
to google-ap...@googlegroups.com
Arjun,

The select option is only in Advanced GAM.

With Standard GAM you can do:
One user

gam report users user us...@domain.com fields accounts:gmail_used_quota_in_mb > MailboxUsage.txt


All users

gam report users user all fields accounts:gmail_used_quota_in_mb > MailboxUsage.txt


A CSV file listing users

gamo csv Users.csv gam report users user "~primaryEmail" fields accounts:gmail_used_quota_in_mb > MailboxUsage.txt


Ross




--
Reply all
Reply to author
Forward
Message has been deleted
0 new messages