See: https://github.com/GAM-team/GAM/wiki/Bulk-Processing#csv-files
See: https://github.com/GAM-team/GAM/wiki/Meta-Commands-and-File-Redirection#file-redirection
See: https://github.com/GAM-team/GAM/wiki/CSV-Output-Filtering#column-row-filtering
See: https://github.com/GAM-team/GAM/wiki/Users#create-a-user
-Change user accounts status from Active to Suspended and move the affected account to our Suspended OU.
-Let's suppose you have a CSV file SuspendUsers.csv with a column labelled primaryEmail
primaryEmail
...
Replace "/Suspended" with actual OU path.
gam redirect stdout ./SuspendUsers.txt multiprocess redirect stderr stdout csv SuspendUsers.csv gam update user "~primaryEmail" suspended true ou "/Suspended"
-Identify user accounts that have not signed in in at least a year and suspend account then move to another OU
gam config csv_output_row_filter "lastLoginTime:date<-1y" redirect csv ./SuspendUsers.csv print users fields lastlogintime
gam redirect stdout ./SuspendUsers.txt multiprocess redirect stderr stdout csv SuspendUsers.csv gam update user "~primaryEmail" suspended true ou "/Suspended"
-Upload a .CSV with new students info to create new accounts and put in the correct OU for the beginning of each school year.
-Let's suppose you have a CSV file CreateUsers.csv with columns labelled primaryEmail,firstName,lastName,password,OU
primaryEmail,firstName,lastName,password,OU
msmit...@domain.com,Mary,Smith,xxxxx,/Students/ClassOf2026
rjone...@domain.com,Robert,Jones,xxxxx,/Students/ClassOf2028
...
gam redirect stdout ./CreateUsers.txt multiprocess redirect stderr stdout csv CreateUsers.csv gam create user "~primaryEmail" firstname "~firstName" lastname "~lastName" password "~password" ou "~OU
--
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 visit https://groups.google.com/d/msgid/google-apps-manager/6d0c3184-977c-43d3-bfd5-2f5f55107a38n%40googlegroups.com.