Add/update secondary email in csv, send login details

198 views
Skip to first unread message

Martin Vonášek

unread,
Aug 23, 2021, 8:45:16 AM8/23/21
to GAM for Google Workspace
Hi,
using the csv table, I created new users, assigned them to an organizational unit and a group.
  1. How to add a secondary email address to the csv table and what command to use to assign a secondary address to users (eg yahoo.com, etc.). I assume I should use the update command, but I don't know the whole command and how to format the csv table?
  2. Is it possible for users to receive a notification on the secondary email address about the creation of a new account on our domain, including login details?
Thanks a lot for your help or guidance on what to study:)

Tony Johnson

unread,
Aug 23, 2021, 9:55:44 AM8/23/21
to google-ap...@googlegroups.com
Martin
Ross gave me this which avoids duplicates (and creates Exists.csv).  Created accounts are notified in Create.txt.
The users.csv contains your list and has headers like this  
useremail firstname lastname password ou recoveryemail recoveryphone notifyemail

The phone number needs to be in international +44  (or equiv) format
Tony J

It works nicely.
gam redirect stdout Created.txt multiprocess redirect stderr Exists.csv multiprocess csv users.csv gam create user "~useremail" firstname "~firstname" lastname "~lastname" ou "~ou" password "~password" recoveryemail “~recoveryemail” recoveryphone “~recoveryphone” changepassword on  notify "~notifyemail"

--
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/a426e95e-3464-48a4-9500-08f9053d1164n%40googlegroups.com.


Click here to report this email as spam.



--
Tony Johnson
07976 832182

Martin Vonášek

unread,
Aug 24, 2021, 6:12:44 AM8/24/21
to GAM for Google Workspace
Hi, 

thanks for help. I have created users.csv with sugested headers, but I got ERROR: redirect is not a valid argument for "gam". I am using 5.11 version of GAM. Could be recoveryemail same like notifyemail?



Dne pondělí 23. srpna 2021 v 15:55:44 UTC+2 uživatel tjoh...@ruskin.ac.uk napsal:

Tony Johnson

unread,
Aug 24, 2021, 6:20:09 AM8/24/21
to google-ap...@googlegroups.com
Aaah sorry Martin, I assumed you were using GAMADV-XTD3  - where this works.
I am no expert but the version above has many more features and is an easy upgrade also compatible with regular GAM.
Follow the upgrade from existing GAM section.

Tony

Ross Scroggs

unread,
Aug 24, 2021, 10:56:48 AM8/24/21
to google-ap...@googlegroups.com
Martin,

You can simplify the command and run it with Standard GAM.
gam csv users.csv gam create user "~useremail" firstname "~firstname" lastname "~lastname" ou "~ou" password "~password" recoveryemail “~recoveryemail” recoveryphone “~recoveryphone” changepassword on > Created.txt 2>Exists.txt

GAM 5.11 does not support the recoveryemail and recoveryphone options, so you'll have to upgrade to 6.07.
Unfortunately, 6.07 doesn't support the notify option so if that's important, you have to migrate to Advanced GAM.

Ross



--

Martin Vonášek

unread,
Aug 29, 2021, 2:23:47 PM8/29/21
to GAM for Google Workspace
Hi and thanks a lot,

I would like to migrate to Advanced GAM, but an update from GAM 5.11 looks very difficult for me or I don't understand it well (so many lines:). Then I am not sure about the commands, I have learned a "long" time every necessary command for GAM (bulk operation, csv...) and in Advanced GAM it looks I have to use new type of commands???
Can you direct me, or help me with some instruction and I will start new with Advanced GAM.

Thank you in advance!

Dne úterý 24. srpna 2021 v 16:56:48 UTC+2 uživatel Ross Scroggs napsal:
Reply all
Reply to author
Forward
0 new messages