Add a Send As Address GAM

4,537 views
Skip to first unread message

Eduardo Fernandez

unread,
Sep 19, 2022, 12:55:28 PM9/19/22
to GAM for Google Workspace
Hello guys,

I need to set a second sender address in all my users. For example, in my email I want to have jokr.com as second account. I have been trying this command:

gam user <username>|group <groupname>|ou <ouname>|all users sendas <EmailAddress> <Name> [signature <String>|(file <FileName>) [replyto <EmailAddress>] [default] [treatasalias <Boolean>] (replace <Tag> <String>)*

However it did not work. Could you help me with this topic.

Thanks. 

Ross Scroggs

unread,
Sep 19, 2022, 1:17:28 PM9/19/22
to google-ap...@googlegroups.com
Eduardo,

What you showed is the BNF syntax for the command, what is the actual command you executed?

A simple command is:
gam user us...@domain.com sendas us...@jokr.com "User @ Jokr.com"

Ross

--
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/85801b95-6a2f-4b4b-a242-fe2063cc6ecdn%40googlegroups.com.


--

Eduardo Fernandez

unread,
Sep 19, 2022, 1:28:56 PM9/19/22
to google-ap...@googlegroups.com
Hi Ross,

Thanks for your email. This command worked pefectly: gam user us...@domain.com sendas us...@jokr.com "User @ Jokr.com"

Is there a way to set as default jokr.com with GAM?

Best!

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/mtAr_N7vCw8/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/CAJkvRS_XuiyXijnViLWvxCvoQ87t5f_%2BXjK%3DMerQVUZtNTSZZA%40mail.gmail.com.


--

Eduardo Fernández
Global Systems Administrator
GMT - 5

INFORMACION CONFIDENCIAL: Este mensaje (incluyendo adjuntos) es confidencial.

CONFIDENTIALITY NOTICE: This message (including any attachments) is confidential.

Ross Scroggs

unread,
Sep 19, 2022, 1:39:39 PM9/19/22
to google-ap...@googlegroups.com
Eduardo,

No, you have to specify the full address.
Make a CSV file Username.csv with one column: username
username
eduardo.fernandez
first.last
...

gam csv Username.csv gam user "~~username~~@jokr.it" sendas "~~username~~@jokr.com" "~~username~~@jokr.com"

Do you want this to be the default sendas address? If so, add this to the end of the command: default

Do you need a signature?

Ross




--

Eduardo Fernandez

unread,
Sep 19, 2022, 1:46:48 PM9/19/22
to google-ap...@googlegroups.com
Hi Ross,

Yes, I need to change to default sendas. I´m  running this command with :"default" at the end but it didn't work:

gam user eduardo....@jokr.it sendas eduardo....@jokr.com "User @ Jokr.com":default

By now , I don't need a signature, thanks.



Ross Scroggs

unread,
Sep 19, 2022, 1:50:31 PM9/19/22
to google-ap...@googlegroups.com
Eduardo,

You want a space before default, not :
gam user eduardo....@jokr.it sendas eduardo....@jokr.com "User @ Jokr.com" default

Ross



--

Eduardo Fernandez

unread,
Sep 19, 2022, 1:53:20 PM9/19/22
to google-ap...@googlegroups.com
Yes, I run as you said but got this message:

image.png


Ross Scroggs

unread,
Sep 19, 2022, 2:04:18 PM9/19/22
to google-ap...@googlegroups.com
Eduardo,

If you already have a sendas address you can't add it again. You can update it to be default.
gam user eduardo....@jokr.it update sendas eduardo....@jokr.com default

Ross




--

User @ Jokr.com

unread,
Sep 20, 2022, 10:24:43 AM9/20/22
to google-ap...@googlegroups.com
Hi Ross,

Thanks for the update. It worked.

If I want to do it in bulk. Do I need to do it with a csv file right? 

Thanks

Ross Scroggs

unread,
Sep 20, 2022, 10:42:58 AM9/20/22
to google-ap...@googlegroups.com
Eduardo,

No, you have to specify the full address.
Make a CSV file Username.csv with one column: username
username
eduardo.fernandez
first.last
...

gam csv Username.csv gam user "~~username~~@jokr.it" sendas "~~username~~@jokr.com" "~~username~~@jokr.com"

first...@jokr.it will get a sendas address first...@jokr.com, the display value will also be first...@jokr.com

To change your send as display value:

If you want some other value in the display value, you could add another column to the CSV file

username,displayname
eduardo.fernandez, Eduardo Fernandez
first.last, First Last
...

gam csv Username.csv gam user "~~username~~@jokr.it" sendas "~~username~~@jokr.com" "~displayname"

Ross





--

Eduardo Fernandez

unread,
Sep 20, 2022, 10:50:10 AM9/20/22
to google-ap...@googlegroups.com
Thanks for your help Ross.

Best!

Reply all
Reply to author
Forward
0 new messages