remove email error

68 views
Skip to first unread message

Geoff Kondel

unread,
Jan 18, 2024, 12:10:39 PM1/18/24
to GAM for Google Workspace
Hi All,
  I am trying to remove a email sent with information that should not have been sent.  I am running this below script, 

gam all users delete messages query "rfc822msgid:< CABEbKRxE8JRrtFthBm2hhj-s...@mail.gmail.com>" doit

and I am getting this error. I feel like its a permissions error but I am not positive. 


unauthorized_client: Client is unauthorized to retrieve access tokens using this method, or client not authorized for any of the scopes requested.

Ross Scroggs

unread,
Jan 18, 2024, 12:13:47 PM1/18/24
to google-ap...@googlegroups.com
Send me a Meet/Zoom invitation adn I'll help.

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/60fdaaf4-4622-4544-b15f-1d4ba5dda551n%40googlegroups.com.

Geoff Kondel

unread,
Jan 18, 2024, 1:29:23 PM1/18/24
to GAM for Google Workspace
I was abled to get it to runt he script once I added to the domain wide delegation.  I just get Got 0 Messages for user ""
would try to delete 0 messages for user "" (max 1) every time I run it for all users 
Reply all
Reply to author
Forward
0 new messages