gam command to update images in a signature dynamically

504 views
Skip to first unread message

Sven Arndt

unread,
Aug 11, 2022, 6:12:02 AM8/11/22
to GAM for Google Workspace
Hi All

I am trying to update signatures for multiple users and want a image on each to be dynamic, so I went the following:

<img src="{RT}{ImageLink}{/RT}" alt="unnamed" border="0">

and the csv contains the links to each image hosted on our website.

if I put a link into the html directly it works, tells it to do this, it doesnt.

any ideas?


Ross Scroggs

unread,
Aug 11, 2022, 9:23:56 AM8/11/22
to google-ap...@googlegroups.com
Sven,

Show your command line; there should be an option: replace ImageLink "~ImageLink"
Replace ~ImageLink with the actual CSV header.

--
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/247e4ab5-4a75-45ba-af8c-de8fb5831540n%40googlegroups.com.

Sven Arndt

unread,
Aug 12, 2022, 1:03:31 AM8/12/22
to GAM for Google Workspace
gam csv cfoteams.csv gam user ~email signature file refer.txt replace "Manager" "~Manager" replace "Mancell" "~Mancell" replace "CalendarName" "~CalendarName" replace "CalendarLink" "~CalendarLink" replace “ImageLink” “~ImageLink”

my command line is correct, and it does work kind of, as in it will show a box where the image should be, but not the image itself.

Ross Scroggs

unread,
Aug 12, 2022, 11:10:30 AM8/12/22
to google-ap...@googlegroups.com
Sven,

With a test user, build the signature in Gmail using {Manager} {Mancell} {CalendarName} but real links for CalendarLink and ImageLink

Verify that the links work, then do: gam user test...@domain.com show signature compact

Copy the signature data into a file and replace the two actual links with {CalendarLink} and {ImageLink}

Test with Gam doing the update.

Ross


Joshua Barron

unread,
Jan 2, 2024, 8:24:50 PM1/2/24
to GAM for Google Workspace
I'd like to do roughly the same, but instead of pulling from a CSV, I'd like to reference the photo URL that is provided when I use 'gam user info ...'


Is that possible?

Ross Scroggs

unread,
Jan 2, 2024, 8:46:01 PM1/2/24
to google-ap...@googlegroups.com
Joshua,

You can't at the moment but I'll add it.

Ross
----
Ross Scroggs



Ross Scroggs

unread,
Jan 3, 2024, 11:32:39 AM1/3/24
to google-ap...@googlegroups.com
Joshua,

6.67.04

Updated user attribute `replace <Tag> <UserReplacement>` to allow `field:photourl` which allows
embedding a link to a user's photo in their signature. Formatting the signature HTML
to properly display the photo is left to the GAM admin.


Ross
----
Ross Scroggs


On Jan 2, 2024, at 5:24 PM, Joshua Barron <joshua...@onequext.com> wrote:

Reply all
Reply to author
Forward
0 new messages