Label Hex Colours

392 views
Skip to first unread message

James SEYMOUR

unread,
Feb 7, 2023, 1:32:21 AM2/7/23
to GAM for Google Workspace
Running gam user <My Emails Address> print labels todrive gives me a file with various headings, 2 of which are color.backgroundColor & color.textColor. These have been generated from the Label colour option in Gmail.
Screenshot 2023-02-07 14.19.35.png

However, when I try to use them to update other labels using 

gam user <My Email Address> update labelsettings "<Label Name>" backgroundcolor "#b3efd3" textcolor "#0b4f30" I get an error;-

Command: /home/path/bin/gamadv-xtd3/gam user <My Email Address> update labelsettings <Label Name> backgroundcolor >>>#b3efd3<<< textcolor #0b4f30

ERROR: Invalid argument: Expected <#000000|#076239|#0b804b|#149e60|#16a766|#1a764d|#1c4587|#285bac|#2a9c68|#3c78d8|#3dc789|#41236d|#434343|#43d692|#44b984|#4a86e8|#653e9b|#666666|#68dfa9|#6d9eeb|#822111|#83334c|#89d3b2|#8e63ce|#999999|#a0eac9|#a46a21|#a479e2|#a4c2f4|#aa8831|#ac2b16|#b65775|#b694e8|#b9e4d0|#c6f3de|#c9daf8|#cc3a21|#cccccc|#cf8933|#d0bcf1|#d5ae49|#e07798|#e4d7f5|#e66550|#eaa041|#efa093|#efefef|#f2c960|#f3f3f3|#f691b3|#f6c5be|#f7a7c0|#fad165|#fb4c2f|#fbc8d9|#fcda83|#fcdee8|#fce8b3|#fef1d1|#ffad47|#ffbc6b|#ffd6a2|#ffe6c7|#ffffff>

I can obvioulsy set these manually, but just wondering why these Hex values, that are valid in Gmail, cannot be set using GAM. I am using 

GAMADV-XTD3 6.29.20 - https://github.com/taers232c/GAMADV-XTD3 - pyinstaller
Ross Scroggs <xxx...@gmail.com>
Python 3.11.0 64-bit final
Linux Debian 9 Stretch x86_64


Cheers

James

Temple Rodgers

unread,
Feb 7, 2023, 4:26:51 AM2/7/23
to GAM for Google Workspace
interesting, I've verified this too. It only works for me if I use an argument as per the error message, other values which I can apply manually won't work in GAM

Ross Scroggs

unread,
Feb 7, 2023, 10:58:27 AM2/7/23
to google-ap...@googlegroups.com
I'll remove the restictions on color choice.

Ross
----
Ross Scroggs



Disclaimers apply, for full details see: https://hackney.gov.uk/email-disclaimer

--
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/17471247-ede3-48ab-9700-d9426d966e51n%40googlegroups.com.

Jay Lee

unread,
Feb 7, 2023, 11:03:48 AM2/7/23
to google-ap...@googlegroups.com
According to the API documentation there are still limits placed on the API:


Ross Scroggs

unread,
Feb 7, 2023, 2:48:15 PM2/7/23
to google-ap...@googlegroups.com
Temple,

I'ved expanded the label color selections in 6.31.09; you values now work.

Ross



--

James SEYMOUR

unread,
Feb 7, 2023, 6:20:35 PM2/7/23
to GAM for Google Workspace
Thanks Ross. 

I can confirm it is working now, cheers.

James

Reply all
Reply to author
Forward
0 new messages