GAM email signature management

2,395 views
Skip to first unread message

Aman Saini

unread,
Aug 26, 2023, 5:44:57 AM8/26/23
to GAM for Google Workspace
we are able to update multiple users' Signatures in one short, anyone kindly help me. and share the right script so that we are proceed this.

Ross Scroggs

unread,
Aug 26, 2023, 12:17:04 PM8/26/23
to google-ap...@googlegroups.com
Aman,

What data do you have?
You'll need a CSV file with user email addresses.
You'll need a template signature file.
You'll need the values to put into the signature; these can come from the CSV file or diretly from user attributes.

Ross
----
Ross Scroggs



On Aug 25, 2023, at 8:52 PM, 'Aman Saini' via GAM for Google Workspace <google-ap...@googlegroups.com> wrote:

we are able to update multiple users' Signatures in one short, anyone kindly help me. and share the right script so that we are proceed this.

--
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/4f173a38-1383-4976-b307-698273b2e111n%40googlegroups.com.

Aman Saini

unread,
Aug 27, 2023, 2:40:57 AM8/27/23
to google-ap...@googlegroups.com
Hi, 

means i have to create 2csv  file and then upload them but then how will be mapped with signature user. 
Because the signature of each user is different



Alistair Baird

unread,
Aug 27, 2023, 5:03:58 PM8/27/23
to GAM for Google Workspace
You need to create one CSV that has email, name, title and will look something like:

user,Salutation,LastName,FirstName,Position
mousem,Mr,Mickey,Mouse,Actor
duckd,Miss,Daisy,Duck,Actress

and a signature template file (eg signature.txt) that has the signature with the placeholders Saultation, LastName, FirstName and Position, I used an HTML content even though it has the txt extension, like:

<html>
Regards<br>
<style="bold">{Salutation} {FirstName} {LastName}<br>
{Poistion}<br>
</html>

then run the command 
gam csv StaffList.csv gam user "~user" signature file signature.txt html replace Salutation "~Salutation" replace FirstName "~FirstName" replace LastName "~LastName" replace Position "~Position"

Aman Saini

unread,
Aug 28, 2023, 1:13:55 AM8/28/23
to google-ap...@googlegroups.com
Hi,

we are getting this error,
ERROR: Header "user" not found in CSV headers of "User,Signature".
ERROR: Header "user" not found in CSV headers of "Email,Signature".




--
Regards.

 AMAN SAINI
aman.saini@jungleworks.com | i...@click-labs.com
  https://jungleworks.com 
   


Aman Saini

unread,
Aug 28, 2023, 1:31:03 AM8/28/23
to GAM for Google Workspace
i have signature in HTML format 

my CSV format Is
email                              Signature 

de...@demo.com       Html <hadder>

Ross Scroggs

unread,
Aug 28, 2023, 12:57:26 PM8/28/23
to google-ap...@googlegroups.com
Aman,

The values like this "~user" have to mthc the headers in the csv file; you need "~User".

Ross



--

Aman Saini

unread,
Sep 28, 2023, 3:34:08 AM9/28/23
to GAM for Google Workspace

hello Guys,

we need your small help, we will update the our all user signature acorrding the user profile but we are able to update, we have signature in html format. kindly help me how to processed  this.

Alistair Baird

unread,
Sep 28, 2023, 6:44:28 AM9/28/23
to google-ap...@googlegroups.com
Hello Aman,

You have been given this. By the look of it, you work for a software company. You should be able to show this to someone in your company who should be able to explain it in your native language.

The command to use GAM is all one line and has the special characters tilde and quotes and is

gam csv StaffList.csv gam user "~user" signature file signature.txt html replace Salutation "~Salutation" replace FirstName "~FirstName" replace LastName "~LastName" replace Position "~Position"

assuming you have a csv file named StaffList.csv and contains the minimum header line and at least one user line, using the headers above such as this

user,Salutation,LastName,FirstName,Position
aman....@jungleworks.com,Mr,SAINI,Aman,"Customer Services"

If you call your html signature file signature.txt even though it is an html file, you can cut and paste the command line above and it will work

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/12EQbU6VcAE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-apps-manager+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/5bd35a5f-1b8a-4904-89f2-e01f8574f5d5n%40googlegroups.com.


--

Kind regards,
Alistair Baird
IT Manager


P  06 354 4198
stpeterspn.school.nz

  @stpeterspn

1 Holdsworth Avenue, Milson
Palmerston North, 4414


Tony Nelson

unread,
Feb 28, 2024, 2:13:57 PM2/28/24
to GAM for Google Workspace
Thanks I struggled with this also.  I got it to work but i noticed that several of my end users created multiple signatures.  is there a way through GAM to make "My Signature" the default for new and replies.

Jose Antonio Garcia Barbera

unread,
Oct 15, 2025, 9:45:13 AM (6 days ago) Oct 15
to GAM for Google Workspace
There was a command to set default to new and replies?

There was a command to clean a user signatures before force the new one?

On the command:

gam csv signature-data.csv  gam user "~email" signature file template-sig2.txt html replace Phone "~Phone" replace Name "~Name" replace email "~email" replace Position "~Position"

Could be a tag to set the name of the signature?

Thank you,

Ross Scroggs

unread,
Oct 15, 2025, 11:00:29 AM (6 days ago) Oct 15
to google-ap...@googlegroups.com
There was a command to set default to new and replies?
No

There was a command to clean a user signatures before force the new one?
gam user us...@domain.com signature ""

Could be a tag to set the name of the signature?

[name <String>] sets the display name for non-primary sendas addresses, not the name of the signature, as that isn't possible via the API.

If you have a current default signature, the API will update that, but if you delete it, it seems that the API will not over-write any of the other signatures, but instead add a new signature called My signature

f you rename that signature, the API will keep on updating that same signature, and not touch the other signatures.


Ross

----
Ross Scroggs


Reply all
Reply to author
Forward
0 new messages