patrickhaley / GJG-GAM-Scripts

Collection of GAMADV-XTD3 scripts used and scheduled via CRON jobs to automate Google Workspace administrative tasks.
https://github.com/patrickhaley/gjg-gam-scripts
4 stars 0 forks source link

Set email signatures for all users #11

Open patrickhaley opened 2 years ago

patrickhaley commented 2 years ago

https://taming.tech/lessons/signatures/

Create an HTML file for signature: https://drive.google.com/drive/folders/16d3VugJuFwwTgNq0SR-3ZR7eBXGi495n

Print all user fields gam print users allfields > signatures.csv

Remove existing signatures (OPTIONAL AND USE CAUTION): gam csv signatures.csv gam user "~primaryEmail" signature blank.txt html

Apply new gam csv signatures.csv gam user "~parimaryEmail" signature file SimpleSignature.html html replace firstname "~name.givenName" replace lastname "~name.familyName" replace jobtitle "~organizations.0.title" replace workphone "~phones.0.value" replace mobilephone "~phones.1.value" replace email "~primaryEmail"

patrickhaley commented 2 years ago

Create directory for GAMWork/Signatures