Update teamdrive to custom theme

338 views
Skip to first unread message

Jennifer LaPittus

unread,
May 20, 2021, 5:34:48 PM5/20/21
to GAM for Google Workspace
I have written a script that will create a list of shared drives and apply acls to them, provided a csv file. We would like to also apply a customized theme to each of these (the same image & color for each for standardization). I am not familiar with web developing, etc, and wondering about the <float> values. 

I'm running this command but getting a "bad request" error and I'm assuming it doesn't like my float values. Can someone help me understand that syntax?

gam update teamdrive teamdriveid 0AMPxkGGQTN1eUk9PVA customtheme 152cb5hq-7z77XxY9GB-wIRraDnLp5NhY 0.000 0.000 0.000 color "#3f51b5"

...where 0AMPxkGGQTN1eUk9PVA is the ID of the Team Drive and 152cb5hq-7z77XxY9GB-wIRraDnLp5NhY is the fileID of the image (which is shared across the domain).

Jennifer LaPittus

unread,
May 20, 2021, 5:36:40 PM5/20/21
to google-ap...@googlegroups.com
I should also add that I was able to manually add this image as a custom theme to a test shared drive and it worked fine.

Jennifer LaPittus
System Engineer


--
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/bf8P8MaBD5M/unsubscribe.
To unsubscribe from this group and all its topics, 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/731cb346-e735-4c4d-a909-d56c56d9d26en%40googlegroups.com.

Ross Scroggs

unread,
May 20, 2021, 7:09:42 PM5/20/21
to google-ap...@googlegroups.com
Jennifer,

Try the following, the last float is 1.000
gam update teamdrive teamdriveid 0AMPxkGGQTN1eUk9PVA customtheme 152cb5hq-7z77XxY9GB-wIRraDnLp5NhY 0.000 0.000 1.000 color "#3f51b5"

Ross


--
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.


--

Ross Scroggs

unread,
May 20, 2021, 7:18:49 PM5/20/21
to google-ap...@googlegroups.com
Jennifer,


Scroll down to Property name and then backgroundImageFile

Ross
--

Jennifer LaPittus

unread,
May 21, 2021, 9:33:16 AM5/21/21
to google-ap...@googlegroups.com
Ross,

You are wonderful! The 0.000 0.000 1.000 values worked like a charm. Thank you so much for your help! 

Jennifer LaPittus
System Engineer

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/bf8P8MaBD5M/unsubscribe.
To unsubscribe from this group and all its topics, 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/CAJkvRS-N3LdVLF%2B2LXrhHuR5tn223-VhBB_ehpNa8x1xspeA9w%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages