Adding a calendar with a custom colors

176 views
Skip to first unread message

April Rosenberg

unread,
Dec 15, 2015, 5:46:58 PM12/15/15
to google-ap...@googlegroups.com
Good Afternoon,

I am trying to add a new calendar to all employees, but right now I am testing with a single person.  I am not able to add it with custom colors.

These commands work:

gam user XXXX add calendar XX...@group.calendar.google.com selected true 

gam user XXXX add calendar XX...@group.calendar.google.com selected true colorindex 3

These commands give the same error:

gam user XXXX add calendar XX...@group.calendar.google.com selected true foregroundcolor 7fdbd4

gam user XXXX add calendar XX...@group.calendar.google.com selected true backgroundcolor 23262e

gam user XXXX add calendar XX...@group.calendar.google.com selected true foregroundcolor 7fdbd4 backgroundcolor 23262e

Error:

Subscribing XX...@postmates.com to XX...@group.calendar.google.com calendar (1 of 1)

Error 400: Invalid value for: Invalid color value (must be of form '#hhhhhh') - invalid

This command (my original command) gives the generic "this is wrong" error:

gam user XXXX add calendar XX...@group.calendar.google.com selected true backgroundcolor #23262e foregroundcolor #7fdbd4


GAM 3.61 - http://git.io/gam

Jay Lee <jay...@gmail.com>

Python 2.7.10 64-bit final

google-api-python-client 1.4.1

Darwin-15.0.0-x86_64-i386-64bit x86_64

Path: /Users/april/Box Sync/GAM/GAM-3.61


Usage: gam [OPTIONS]...


GAM. Retrieve or set Google Apps domain,

user, group and alias settings. Exhaustive list of commands

can be found at: https://github.com/jay0lee/GAM/wiki


Examples:

gam info domain

gam create user jsmith firstname John lastname Smith password secretpass

gam update user jsmith suspended on

gam.exe update group announcements add member jsmith

...


This has been true in both 3.45 and 3.61.

Any help would be appreciated.  Thanks!

April


--
April Rosenberg | Systems Administrator Postmates.com | april.r...@postmates.com | (415) 579-1534

Ross Scroggs

unread,
Dec 15, 2015, 6:39:43 PM12/15/15
to google-ap...@googlegroups.com
April,

You said: gam user XXXX add calendar XX...@group.calendar.google.com selected true backgroundcolor #23262e foregroundcolor #7fdbd4
You should say: gam user XXXX add calendar XX...@group.calendar.google.com selected true backgroundcolor '#23262e' foregroundcolor '#000000'

You should put #012345 in quotes. As far as my experience goes, foregroundcolor has to be '#000000' (dark text) or '#FFFFFF' (light text).

Ross

--
You received this message because you are subscribed to the Google Groups "Google Apps Manager" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/CAAS4vJm%3D_jN%3D2nYAfvUo7O%3DM%2BO8sqs-1_Bfev%3DEAXk%2Bk389z4g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.



--
Reply all
Reply to author
Forward
0 new messages