Searching for message using ID?

2,386 views
Skip to first unread message

JR McVicker

unread,
Apr 7, 2021, 3:15:24 PM4/7/21
to GAM for Google Workspace
Good afternoon.  I just installed GAM for the first time.   Trying to use it to locate a specific message using the message ID.  Is that possible?  I've been trying to decipher how to do this using https://gamcheatsheet.com/ but I am coming up short.

What I am hoping to find is the specific message and view any labels that might be applied to said message.

-JR

Eric Dannewitz

unread,
Apr 7, 2021, 6:17:04 PM4/7/21
to google-ap...@googlegroups.com
gam user m...@me.com show messages query rfc822msgid:THISISWHERETHEMESSAGEIDGOES includespamtrash



--
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/ee8dcd41-7872-459c-af12-b51c1daa6acbn%40googlegroups.com.


--
Eric Dannewitz 
Technology Assistant/District Tech
Google Cloud Certified Administrator & G Suite
Google Certified Educator Level 1 & 2
Acalanes Union High School District
District Office Technology Department
925-280-3980 x4309
edann...@auhsdschools.org

JR McVicker

unread,
Apr 7, 2021, 7:46:17 PM4/7/21
to google-ap...@googlegroups.com
Hi Eric.  That is the command I tried to run but I received the error message "ERROR: messages is not a valid argument for "gam <users> show""


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/p6hjOXLqjBM/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/CAG-f%3DMG5hw8SwkmORj1i5ghfvpgBkNJK%2B0dTb3Yw7ORzEA0nCQ%40mail.gmail.com.


--

JR McVicker

Server Engineer

Information Technology | Cornerstone University

616-222-1498 | 616-292-0988
jr.mc...@cornerstone.edu
cornerstone.edu
1001 E Beltline Ave NE, Grand Rapids, MI 49525
Create Your Own Free Signature
 

Ross Scroggs

unread,
Apr 7, 2021, 7:51:36 PM4/7/21
to google-ap...@googlegroups.com
JR,

show messages is only available in Advanced GAM.
In Standard GAM you can do which will sort of show the messages but not delete them unless you add the doit option.
gam user m...@me.com delete messages query rfc822msgid:THISISWHERETHEMESSAGEIDGOES
Ross



--

JR McVicker

unread,
Apr 8, 2021, 8:06:29 AM4/8/21
to google-ap...@googlegroups.com
Morning Ross.  I did not know there was a standard and advanced GAM.  I just finished updating my install to the advanced version and I can find the message in question.  Is it possible with GAM to show labels applied to a message?  Or to search for all mail with a specific label applied?

We are trying to migrate from Google Workspace to O365 and we have an account that is missing a large amount of mail.  The vendor is saying it is because there is a label of Label_1 applied to the message but in the Gmail UI this label does not exist so it isn't being migrated.  I just ran the command gam user us...@domain.com show labels and this label does not appear there either.   Google says it is an issue with the vendor and the vendor says they are just executing API calls and the invalid label is on the message and needs to be fixed before migrating.   Trying to get both on the same page has been difficult.  So the more info I can provide the faster I'm hoping to get to a resolution.

-JR

Ross Scroggs

unread,
Apr 8, 2021, 9:38:49 AM4/8/21
to google-ap...@googlegroups.com
JR,


As to the second part, Label_1 is a label ID, not a label.

You should see something like this:
$ gam user ross.scroggs show labels onlyuser
User: ross.s...@rdschool.org, Show 1 Label
  Test Label       <---- Label
    type: user
    id: Label_1    <---- ID

Ross


Eric Dannewitz

unread,
Apr 10, 2021, 3:10:20 PM4/10/21
to google-ap...@googlegroups.com
Sorry, my bad. I forget there is a "regular" GAM......I only use GAMADV-XTD3

Reply all
Reply to author
Forward
0 new messages