Hey everyone,
Recently we had one of our staff accounts compromised, and they sent a phishing email. We're new to GAM and ran the following command:
The only issue is that it went through EVERY account we've ever had, and took hours to complete. I did some digging to see if we could limit it to specific OUs, and found this:
gam ou_and_children </Top/Level/OU> delete messages query "rfc822msgid:<message ID>" doit
So my questions are, would I replace </Top/Level/OU> with <pryor.k12.ok.us/Staff>, and where would I find the message ID of the target email?