Two email messages were inadvertently sent to our entire domain (high school students) and the message was intended only for staff. I would like to remove the messages from the inboxes of students (or all users if need be). I am new to GAM, but was referred here by a support provider. Is someone able to help me with a script I can run in GAM so that I can remove the specific messages from the users' inboxes?Thanks!
--
You received this message because you are subscribed to the Google Groups "Google Apps Manager" 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 http://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/45926c66-c92b-4e09-ba0e-03ed2eacbc72%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Can I use the same client_secrets.json from gam with gyb?
--
You received this message because you are subscribed to the Google Groups "Google Apps Manager" 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 http://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/3c75c519-0817-466f-bcc2-a243a76300be%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/CA%2BVVBp_BhrQ1Sh1Gq-E274x0%2BZ18%3DkH1pe4Ti_R-CjZU5QPOFQ%40mail.gmail.com.
GAM can't do this but GYB, another open source tool I maintain, can. It just so happens a good article on how to do this was written just yesterday:
Jay Lee
On Tue, Jul 1, 2014 at 7:13 AM, John Reiels <john....@nicolet.us> wrote:
Two email messages were inadvertently sent to our entire domain (high school students) and the message was intended only for staff. I would like to remove the messages from the inboxes of students (or all users if need be). I am new to GAM, but was referred here by a support provider. Is someone able to help me with a script I can run in GAM so that I can remove the specific messages from the users' inboxes?Thanks!
--
You received this message because you are subscribed to the Google Groups "Google Apps Manager" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.
#Change these variables to what you have in your environment
#Location of csv with header of "email" and listing the email accounts that received the email
$file = "C:\EmailsWithUnwantedEmail.csv"
#service account email address from google developer console
$serviceAccountEmail = "12345...@developer.gserviceaccount.com"
#Message ID of unwanted email
$messageID = "1234567890@localhost"
$searchParam = "rfc822msgid:" + $messageID
#Action to take on the email. Can either be estimate, purge, count, purge-labels
$action = "estimate"
$importedCSV = Import-Csv $file
foreach ($entry in $importedCSV) {
C:\path\to\gyb.exe --service-account "$serviceAccountEmail" --search "$searchParam" --action $action --email "$($entry.email)"
}