--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" 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/f95bbfc5-9b95-4203-b096-e1c7ff01d4f9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
|
Kevin, doesn't that automatically insert the middle initial into 'fullname' then?
Jason
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/CAKM%3Dboai5xZAYazghfms_oaxBQ_9n_6aYozSMWm2%3DEVk%3DFpuQw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
#FarmerPower
![]() |
Jason
Forst | Farmobile
Director of Infrastructure Direct: 913-766-4625 Office: 844-337-2255 x 725 Mobile: 913-481-7325 |
This email is strictly confidential. If you received this email in error please delete it immediately and notify the sender.
Hi Ross, I'll look at schemas too.
I've discovered a couple things about keywords (that you probably already know...):
1. Multiple custom keywords (keyword custom <keyword-name> <keyword-value>; and, <keyword-value> does not have to be double-quoted unless you are trying to set null ( "" )
2. To insert/add keywords, you must include them _all_ in the
command:
$ gam update user uid@domain keyword custom honorific "Ph.D." keyword custom middlename "fred" keyword custom somefield "somevalue"
$ gam info user uid@domain keywords Keywords: type: custom customType: honorific value: Ph.D. type: custom customType: middlename value: fred type: custom customType: somefield value: somevalue Groups: (15) <<snip>>
3. To update the values of keywords, you must include all the
keywords and values in each command: i.e. leaving one (or more)
out will delete that value (e.g. middle name is removed)
$ gam update user uid@domain keyword custom honorific "DSc." keyword custom somefield "anothervalue" $ gam info user uid@domain keywords
Keywords: type: custom customType: honorific value: DSc. type: custom customType: somefield value: anothervalue Groups: (15) <<snip>>
4. If all values are null ( "" ), then no keyword values will be
changed:
$ gam update user uid@domain keyword custom honorific "" keyword custom somefield "" $ gam info user uid@domain keywords Keywords: type: custom customType: honorific value: DSc. type: custom customType: somefield value: anothervalue Groups: (15) <<snip>>
5. To set SOME values to "" (null) and thus remove the keyword,
at least one must have a non-null value; the null-value keywords
will be removed:
$ gam update user uid@domain keyword custom honorific "DDS" keyword custom somefield ""
$ gam info user uid@domain keywords Keywords: type: custom customType: honorific value: DDS Groups: (15) <<snip>>(Note, another approach here is to only include the desired keyword(s) and value(s), i.e. <gam update user uid@domain keyword custom honorific "DDS">
6. Clear ALL the keywords with:
$ gam update user uid@domain keyword clear $ gam info user uid@domain keywords Settings: Groups: (15) <<snip>>
Jason,
You might consider schemas; you can update individual fields.
Ross
$ gam create schema UserInfo field Honorific type string endfield field MI type string endfieldSchema: UserInfo, Created$ gam info schema UserInfoSchema: UserInfodisplayName: UserInfoschemaId: wGFmY5wBQLOkioLmc1afag==Field: HonorificdisplayName: HonorificfieldType: STRINGreadAccessType: ALL_DOMAIN_USERSfieldId: Nf_Xn5fKT3yNiLUc47PE0Q==Field: MIdisplayName: MIfieldType: STRINGreadAccessType: ALL_DOMAIN_USERSfieldId: PNwwgKQNRjuH8mL6VqZjKg==$ gam update user testuser4 UserInfo.Honorific PHD UserInfo.MI XUser: test...@rdschool.org, Updated$ gam info user testuser4 customschemas UserInfo nogroups nolicensesUser: test...@rdschool.orgSettings:Custom Schemas:Schema: UserInfoHonorific: PHDMI: X$ gam update user testuser4 UserInfo.MI YUser: test...@rdschool.org, Updated$ gam info user testuser4 customschemas UserInfo nogroups nolicensesUser: test...@rdschool.orgSettings:Custom Schemas:Schema: UserInfoHonorific: PHDMI: Y$ gam update user testuser4 UserInfo.Honorific WizardUser: test...@rdschool.org, Updated$ gam info user testuser4 customschemas UserInfo nogroups nolicensesUser: test...@rdschool.orgSettings:Custom Schemas:Schema: UserInfoHonorific: WizardMI: Y
On Apr 18, 2019, at 7:24 AM, Jason <jfo...@farmobile.com> wrote:
Ah!
I'll give that a try.
Thanks, Ross.
Jason
Ross Scroggs wrote:
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/ED4E8CCA-BC9F-4A5D-A07F-2FBB6AE104DA%40gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
#FarmerPower
![]()
Jason Forst | Farmobile
Director of Infrastructure
Direct: 913-766-4625
Office: 844-337-2255 x 725
Mobile: 913-481-7325This email is strictly confidential. If you received this email in error please delete it immediately and notify the sender.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/65cb1a72-be86-08a4-6665-22ad2fa41dd4%40farmobile.com.