Update Custom Schema

310 views
Skip to first unread message

Jainam desai

unread,
Apr 14, 2021, 8:59:48 AM4/14/21
to GAM for Google Workspace
Hello Ross,

We need to update the custom scheme, have tried following GAM command however facing issues please guide

gam update user User1 externalid organization 1454 organization type gender male

ERROR: invalid argument (male) for account organization details

Additionally, We need to update the following fields, please share GAM command to update these fields at once.

Gender
Joining Date
Function Head
Employee Retention
Requester Email
Requester Ecode

Thanks in Advance.

Regrads,
JD

Ross Scroggs

unread,
Apr 14, 2021, 11:08:37 AM4/14/21
to google-ap...@googlegroups.com
JD,

This describes the mapping between Admin Console settings and GAM settings:

These are the definitions of all user attributes:

<UserBasicAttribute> ::=

        (agreed2terms|agreedtoterms <Boolean>)|

        (changepassword|changepasswordatnextlogin <Boolean>)|

        (base64-md5|base64-sha1|crypt|sha|sha1|sha-1|md5|nohash)|

        (customerid <String>)|

        (email|primaryemail|username <EmailAddress>)|

        (firstname|givenname <String>)|

        (gal|includeinglobaladdresslist <Boolean>)|

        (gender clear|(female|male|unknown|(other <String>) [addressmeas <String>]))|

        (ipwhitelisted <Boolean>)|

        (language clear|<LanguageList>)|

        (lastname|familyname <String>)|

        (note clear|([text_html|text_plain] <String>|(file <FileName> [charset <Charset>])))|

        (org|ou|orgunitpath <OrgUnitPath>)

        (password random|<Password>)|

        (recoveryemail <EmailAddress>)|

        (recoveryphone <string>)|

        (suspended <Boolean>)|

        (<SchemaName>.<FieldName> [multivalued|multivalue|value|multinonempty [type home|other|work|(custom <String>)]] <String>)

<UserMultiAttribute> ::=

        (address clear|(type home|other|work|(custom <String>) [unstructured|formatted <String>] [pobox <String>] [extendedaddress <String>] [streetaddress <String>]

                [locality <String>] [region <String>] [postalcode <String>] [country <String>] [countrycode <String>] notprimary|primary))|

        (otheremail clear|(home|other|work|<String> <String>))|

        (externalid clear|(account|customer|login_id|network|organization|<String> <String>))|

        (im clear|(type home|other|work|(custom <String>) protocol aim|gtalk|icq|jabber|msn|net_meeting|qq|skype|yahoo|(custom_protocol <String>) <String> [notprimary|primary]))|

        (keyword clear|(mission|occupation|outlook|(custom <string>) <String>))|

        (location clear|(type default|desk|<String> area <String> [building|buildingid <String>] [floor|floorname <String>] [section|floorsection <String>] [desk|deskcode <String>] endlocation))|

        (organization clear|([type domain_only|school|unknown|work] [customtype <String>] [name <String>] [title <String>] [department <String>] [symbol <String>]

                [costcenter <String>]  [location <String>] [description <String>] [domain <String>] [fulltimeequivalent <Integer>] notprimary|primary))|

        (phone clear|([type assistant|callback|car|company_main|grand_central|home|home_fax|isdn|main|mobile|other|other_fax|pager|radio|telex|tty_tdd|work|work_fax|work_mobile|work_pager|(custom <String>)]

                [value <String>] notprimary|primary))|

        (posix clear|(username <String> uid <Integer> gid <Integer> [system|systemid <String>] [home|homedirectory <String>] [shell <String>]

                [gecos <String>] [os|operatingSystemType linux|unspecified|windows] [primary <Boolean>] endposix))|

        (relation clear|(admin_assistant|assistant|brother|child|domestic_partner|dotted-line_manager|exec_assistant|father|friend|manager|mother|parent|partner|referred_by|relative|sister|spouse|<String> <String>))|

        (sshkeys clear|(key <String> [expires <Integer>] endssh))|

        (website clear|(app_install_page|blog|ftp|home|home_page|other|profile|reservations|resume|work|<String> <URL> [notprimary|primary]))


Do you have a custom schema for these fields?

Joining Date
Function Head
Employee Retention
Requester Email

Requester Ecode

Do: gam show schemas

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.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/e3825ff5-39cb-486d-9a00-546cd30dfecan%40googlegroups.com.


--

Jainam desai

unread,
Apr 15, 2021, 1:53:10 AM4/15/21
to google-ap...@googlegroups.com
Hello Ross,

Thank you for the response.

Yes, we have created custom schemas for for mentioned fields.

Regards,
JD

Ross Scroggs

unread,
Apr 15, 2021, 5:17:44 PM4/15/21
to google-ap...@googlegroups.com
Jainam,

Do: gam info schema <SchemaName>

With this info I can show you how to do the updates.

Ross





--
Reply all
Reply to author
Forward
0 new messages