Hello,
I am using Extended GAM. I use gam each summer to clean up aliases from name changes from the previous year.
I first print the list todrive, then remove ones I want to keep. Then I use this resulting CSV to run this:
gam csv aliases.csv gam delete alias ~Alias
Simple, and works well.
Because Google will leave the old alias in people's personal address books, sometimes we get a request to clean this up. I do this on an individual request basis by doing this:
gam print group-members group
distr...@wdmcs.org recursive noduplicates | gam csv - gam user ~email delete othercontacts emailmatchpattern
oldpersonse...@wdmcs.orgIn an effort to be more proactive, I'd like to do this for everyone and not wait for someone to ask. But I'm not sure how to combine these actions into one command, since I need to reference 2 csv files (the piped list of members from
distr...@wdmcs.org and the aliases.csv file)
I realize I could manually combine the two csv files into one, but that will require more steps and I was hoping I could combine this all into one slick gam command. So I tried this:
gam print group-members group
distr...@wdmcs.org recursive noduplicates | gam csv - gam user ~email delete othercontacts emailmatchpattern gam csv aliasdelete2024.csv ~Alias
and that doesn't work, as it's trying to reference a second csv and that must not be how that works.
Does anyone have an idea of how I could accomplish this?
Thanks,
Carl