Adding an entry in custom schema multivalue field without overwriting

113 views
Skip to first unread message

Darius Gorganzadeh

unread,
Apr 1, 2024, 4:36:01 PM4/1/24
to GAM for Google Workspace
I've created a custom schema element with multiple entries.  I'm trying to use GAM to add an entry to an already existing list.  

I've been testing commands like: gam update user $USER schema.field multivalue $VALUE
In this case, the value entered overwrites all existing values in the multivalue field.  

Is there a command that will add a new entry to the end of a multivalue field?  Is this a case where I need to pull all the existing entries out, then add them back in with the new value?

Ross Scroggs

unread,
Apr 1, 2024, 4:45:17 PM4/1/24
to google-ap...@googlegroups.com
Show your schema, what you are trying to do should work.

Ross
----
Ross Scroggs



--
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/c35a06e3-8319-4f63-81c6-8902e81372dan%40googlegroups.com.

Darius Gorganzadeh

unread,
Apr 1, 2024, 4:59:26 PM4/1/24
to GAM for Google Workspace

gam info schema Licenses
Schema: Licenses
 schemaId: PsXwcTN2Q6Cz2ySxPh1FkQ==
 displayName: Licenses
 Field: License
  fieldId: K1hzfL3XTq2N3AWzT2f5Bg==
  fieldType: STRING
  displayName: License
  multiValued: True
  readAccessType: ADMINS_AND_SELF


gam info user darius.gorganzadeh@_.com schemas Licenses
User: darius.gorganzadeh@_.com
Custom Schemas:
 Schema: Licenses
  License:
   type: work
    value: Jira
   type: work
    value: Confluence

Ross Scroggs

unread,
Apr 1, 2024, 5:02:07 PM4/1/24
to google-ap...@googlegroups.com
Send me a Meet/Zoom invitation now and I'll help.

Ross
----
Ross Scroggs


Darius Gorganzadeh

unread,
Apr 1, 2024, 5:03:44 PM4/1/24
to GAM for Google Workspace
Following up on this - when I use the command below, it wipes the existing custom schema entries.  The goal is to have this entry added to the existing ones.  

gam update user darius.gorganzadeh@_.com Licenses.License multivalue Asana

updating user darius.gorganzadeh@_.com...

gam info user darius.gorganzadeh@_.com schemas Licenses
User: darius.gorganzadeh@_.com
Custom Schemas:
 Schema: Licenses
  License:
   type: work
    value: Asana

Scott Marquardt

unread,
Oct 31, 2024, 3:20:18 PM10/31/24
to GAM for Google Workspace
What was the final success with this one? 

Ross Scroggs

unread,
Oct 31, 2024, 4:18:29 PM10/31/24
to google-ap...@googlegroups.com
There is no appending, you have to specify all the values for the field.

Ross
----
Ross Scroggs


Reply all
Reply to author
Forward
0 new messages