Messages - countsonly with date range

114 views
Skip to first unread message

jco3

unread,
Jun 26, 2024, 12:59:17 PM6/26/24
to GAM for Google Workspace
Hi, I'm trying to get a message count for a specific user in a time range.

I tried this

gam user <User Email Address> print messages countsonly query 'after:<yyyy-mm-dd> before:<yyyy-mm-dd>'

No luck.  Any tips?

Ross Scroggs

unread,
Jun 26, 2024, 1:01:58 PM6/26/24
to google-ap...@googlegroups.com
What does no luck mean? An error, no expected results?

Show command and output.

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/142d2d95-b0ab-47c2-9a5f-dba09e148518n%40googlegroups.com.

jco3

unread,
Jun 26, 2024, 1:47:10 PM6/26/24
to GAM for Google Workspace
Correct.  No results.

SCR-20240626-juwh.png

✉ Kevin Melillo

unread,
Jun 26, 2024, 1:57:25 PM6/26/24
to google-ap...@googlegroups.com
I just attempted the command:

gam user <ME> print messages countsonly query 'after:2024-01-01 before:2024-01-02'


I received the expected result

Getting all Messages for <ME>
Got 121 Messages for <ME>...
User,messages
<ME>,121


jco3

unread,
Jun 26, 2024, 2:14:18 PM6/26/24
to GAM for Google Workspace
Perfect.  Thank you.  I needed to remove the < > around the dates.
Reply all
Reply to author
Forward
0 new messages