Hey Folks,
I have successfully made a mini script where an admin can input email values in the terminal and GAM proceeds to deprovision a user according to my logic.
Further I would like to construct a script so that I only need to have a .csv file in that folder path and my logic of several gam commands is applied to every line.
My csv looks like this
email, archive
someuser1@aaa,thisusersarchive@aa
someuser2@aa,thatotherusersarchive
andsoon@aaa, andsoforth@ajkls
example gam logic, this needs to run on each line on the csv:
gam update user $email password somePass email someEmail gal off org /leaver
gam user $email deprovision
gam update alias $email user $archive
In PowerShell with foreach.entry it worked but I need it as .sh script :o