So, I'm new to GAM but was tasked by my supervisor to use it with our Google Workspace to create a process of exporting offboarded employee mailboxes on a regular basis. I've learned a bit about Google Vault and think that I know what I need to do.
- Create a vault matter that searches for the mailbox of a specified user.
- Export the findings of the newly created matter.
- Download the export as a PST or MBOX file.
In theory, I'd like to write a script to do this for all offboarded employees once a week but have had trouble with step 1 while testing.
I've tried:
> gam create matter "Users Mailbox" corpus mail accounts [email protected]
> ERROR: Users Mailbox is not a valid argument for "gam create matter"
> gam create vaultexport | export matter "Offboarded Employees" corpus mail accounts [email protected]
export: not valid in this context: Offboarded Employees
ERROR: you must specify a matter for the new export.
[1] exit 3 gam create vaultexport
I have installed GAM version 6.08 and am using the below resources.
Maybe I'm just misunderstanding the syntax and need another set of eyes.
Any help would be greatly appreciated! :)
Checking this documentation:
The syntax used is:
I tried using the syntax that you mentioned above and got the same error message:
What I checked is that the "name" of the vault matter was not included in your syntax so most likely "Users mailbox" is being recognized as an argument when you don't identify it as the name of the matter.
I would suggest as well that you download the latest version in GAM: https://github.com/jay0lee/GAM/releases