gam create user notify Where is email template?

429 views
Skip to first unread message

Yehuda Alexandroff

unread,
Oct 13, 2023, 10:37:33 AM10/13/23
to GAM for Google Workspace
Hi:

When I create new accounts, I use the notify function, but I'd like to edit it. Is there a way to download the current message so that I can edit it?

Thanks,

Yehuda

Ross Scroggs

unread,
Oct 13, 2023, 11:47:11 AM10/13/23
to google-ap...@googlegroups.com
Yehuda,


You can supply a customied message of your choice.

Ross
----
Ross Scroggs



--
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/968bf9cb-b8bc-4e2d-bdf9-c6c537a71ec6n%40googlegroups.com.

Yehuda Alexandroff

unread,
Oct 13, 2023, 12:05:13 PM10/13/23
to google-ap...@googlegroups.com
Thank you very much!

You received this message because you are subscribed to a topic in the Google Groups "GAM for Google Workspace" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-apps-manager/sQH4Xm7W-CI/unsubscribe.
To unsubscribe from this group and all its topics, 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/3212F25F-B936-4A9E-AFAB-E765E03D5C88%40gmail.com.

Jonathan Marshall

unread,
Feb 13, 2024, 12:14:35 PM2/13/24
to GAM for Google Workspace
Hello Ross, Yehuda, 

I'm looking to add users with a CSV along with a notify invitation to their secondary email as if doing that from the GUI admin console.
Is there a reference and or command to do so

gam csv users.csv gam create user "~Email" firstname "~FirstName" lastname "~LastName" org "~OrgUnit"

Thanks,
Jonathan

Yehuda Alexandroff

unread,
Feb 13, 2024, 12:24:17 PM2/13/24
to google-ap...@googlegroups.com
I'm doing it from a Google Sheet, but I'll share the command. It should be easily changeable for a csv file.

gam csv gsheet sheetowner sheetid sheetname gam create user "~email" firstname "~firstname" lastname "~lastname" notify "~personalemail" subject "Welcome to School" from IT message "~message" password changeme changepasswordatnextlogin org OU

The names enclosed in "~ and " are columns in my sheet.

You can probably just substitute the name of the csv file for csv gsheet sheetowner sheetid sheetname, although I'm not sure if you'd still need the second gam.

Hope this helps,

Yehuda

Jonathan Marshall

unread,
Feb 13, 2024, 12:47:05 PM2/13/24
to GAM for Google Workspace
Thank you Yehuda, I will give this a try

Rob Martin

unread,
Feb 13, 2024, 4:39:15 PM2/13/24
to GAM for Google Workspace
To use a gdoc as the template for the welcome email and to create a log of each new account  I use the following command

gam redirect stdout  <log_file_name>.log multiprocess redirect stderr stdout csv <CSV_File_Name>.csv gam create user ~userName firstname ~firstName lastname ~lastName password uniquerandom 12 org '<ORG_PATH>' gal off changepassword on groups member delivery allmail ~group notify "~~personalEmail~~,<another_email> subject "You have a new account at <organisation>" ghtml <doc_owner_email <DOC_ID>

change gal off/on as appropriate.

Hope this helps

Rob

Jonathan Marshall

unread,
Feb 14, 2024, 3:44:30 PM2/14/24
to GAM for Google Workspace
Thank you, Rob, I put that on my list to test as well. I appreciate it. 

Jonathan Marshall

unread,
Feb 15, 2024, 11:51:26 AM2/15/24
to GAM for Google Workspace
Thank you guys, I got the command to work using a CSV file. f
Will test out the gsheet and gdoc options as well 

Thanks,
Jonathan

C-Prashant Dwivedi

unread,
Apr 2, 2024, 1:02:39 PM4/2/24
to GAM for Google Workspace
Hi, 
https://github.com/taers232c/GAMADV-XTD3/wiki/Users#password-notification
using this documentation I successfully updated the notification email, but what if we want to add some header and footer image as well.
or should I use  htmlmessage .
can you show me any example of it .

Thanks & regards

DISCLAIMER: The contents of this email, including any attachments that it may contain, are privileged and confidential information, and may also constitute as proprietary, and are intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by email and delete the original message. Unintended recipients are strictly prohibited from copying, disclosing, and/or distributing such contents in any manner or form. Opinions, conclusions, and other information in this transmission that do not relate to the official business of Amagi, including all its affiliates, shall be understood as neither given nor endorsed by it. Any statements made herein that are tantamount to contractual obligations, promises, claims or commitments shall not be binding on the Company unless expressly and specifically stated as otherwise, or followed by written confirmation, by an authorized signatory of the Company.

Ross Scroggs

unread,
Apr 2, 2024, 1:15:28 PM4/2/24
to google-ap...@googlegroups.com
You'll use htmlmesage <string> or htmlfile <filename>

Ross
----
Ross Scroggs


C-Prashant Dwivedi

unread,
Apr 8, 2024, 7:14:12 AM4/8/24
to GAM for Google Workspace

Hi Ross,
I'm unable to use it HTML message with created credential's  for newly created emails .
Please advice e how do we solve this problem .
I'm using the html message as template but i want to insert the newly generated email and password in html message, because its a notification email . 
or we can join this call and discuss it in more details .


To join the video meeting, click this link: https://meet.google.com/gbz-tbrp-djf
Otherwise, to join by phone, dial +1 740-563-2800 and enter this PIN: 426 416 510#
To view more phone numbers, click this link: https://tel.meet/gbz-tbrp-djf?hs=5


Thanks & Regards.

C-Prashant Dwivedi

unread,
Apr 8, 2024, 7:19:25 AM4/8/24
to GAM for Google Workspace

Hi Ross, Hello [ Candidate Display Name ],


Greetings of the day. Hope you & your loved ones are healthy & safe.


Username : [Candidate Business Email ID ]


Password : [ Business Email ID Password ]


i want to insert this values in this html text  from gam .
or Should I use Gdoc. as template message 

Ross Scroggs

unread,
Apr 8, 2024, 10:44:57 AM4/8/24
to google-ap...@googlegroups.com
It's 7:45AM PDT in California, I can meet in 30 minutes.

Ross
----
Ross Scroggs


C-Prashant Dwivedi

unread,
Apr 8, 2024, 11:14:19 AM4/8/24
to google-ap...@googlegroups.com

Sorry Ross I wasn’t available,If it’s possible then let’s meet around 10:00Am PDT. 

On 8 Apr 2024, at 8:14 PM, Ross Scroggs <ross.s...@gmail.com> wrote:

It's 7:45AM PDT in California, I can meet in 30 minutes.

Ross Scroggs

unread,
Apr 8, 2024, 11:16:05 AM4/8/24
to google-ap...@googlegroups.com
Talk to you in an hour and 45 minutes.

Ross
----
Ross Scroggs


Ross Scroggs

unread,
Apr 8, 2024, 11:17:43 AM4/8/24
to google-ap...@googlegroups.com
Here's how to do the values substitutions in your HTML template.

Hello #givenname# #familyname#,


Greetings of the day. Hope you & your loved ones are healthy & safe.


Username : #email#


Password : #password#


Ross
----
Ross Scroggs


C-Prashant Dwivedi

unread,
Apr 8, 2024, 12:03:38 PM4/8/24
to google-ap...@googlegroups.com
Thanks Ross, 
HTML is now accepting the value from GAM.

Thank You so much.

Now I have one more problem:
when I create any user using GAM , In G Suite Dashboard it shows, email is created by :"pras...@domain.com", Here I want to change the creator to the service account I'm using .




--
Prashant Dwivedi
Python Developer
Amagi Media Labs
_______________________________________________________________

Ross Scroggs

unread,
Apr 8, 2024, 12:08:41 PM4/8/24
to google-ap...@googlegroups.com
Do: gam oauth info
At the bottom, look for the line: Google Workspace Admin:

All client API calls are made with this user; to use a different account do the
following and specify the super admin account of your choice.
gam oauth create

Ross
----
Ross Scroggs


C-Prashant Dwivedi

unread,
Apr 8, 2024, 12:11:07 PM4/8/24
to google-ap...@googlegroups.com
Is there any specific wiki on this , so I can follow the instructions?


Ross Scroggs

unread,
Apr 8, 2024, 12:13:01 PM4/8/24
to google-ap...@googlegroups.com

C-Prashant Dwivedi

unread,
Apr 8, 2024, 12:18:36 PM4/8/24
to google-ap...@googlegroups.com
Thanks Ross, this will help me to solve the problem.
Thanks you 

Reply all
Reply to author
Forward
0 new messages