Using GAM to change user's language

515 views
Skip to first unread message

jing he

unread,
Mar 30, 2022, 4:28:18 AM3/30/22
to GAM for Google Workspace
Hello,

I found the command here (https://github.com/GAM-team/GAM/wiki/ExamplesEmailSettings#set-user-language) only changes a user's gmail language. Is there a gam command that can change a user's google account language?

Thanks,
Heather

Ross Scroggs

unread,
Mar 30, 2022, 11:53:32 PM3/30/22
to google-ap...@googlegroups.com
Heather

<LanguageCode> ::=
        ach|af|ag|ak|am|ar|az|be|bem|bg|bn|br|bs|ca|chr|ckb|co|crs|cs|cy|da|de|
        ee|el|en|en-gb|en-us|eo|es|es-419|et|eu|fa|fi|fil|fo|fr|fr-ca|fy|
        ga|gaa|gd|gl|gn|gu|ha|haw|he|hi|hr|ht|hu|hy|ia|id|ig|in|is|it|iw|ja|jw|
        ka|kg|kk|km|kn|ko|kri|ku|ky|la|lg|ln|lo|loz|lt|lua|lv|
        mfe|mg|mi|mk|ml|mn|mo|mr|ms|mt|my|ne|nl|nn|no|nso|ny|nyn|oc|om|or|
        pa|pcm|pl|ps|pt-br|pt-pt|qu|rm|rn|ro|ru|rw|
        sd|sh|si|sk|sl|sn|so|sq|sr|sr-me|st|su|sv|sw|
        ta|te|tg|th|ti|tk|tl|tn|to|tr|tt|tum|tw|
        ug|uk|ur|uz|vi|wo|xh|yi|yo|zh-cn|zh-hk|zh-tw|zu
<Language> ::=
        <LanguageCode>[+|-]|
        <String>
<LanguageList> ::= "<Language>(,<Language>)*"

gam update user <UserItem> language clear|<LanguageList>

You can specify preferred languages that will be reflected
in the user's profile. In `language <LanguageList>`, append a `+` to `<Language>` to indicate
that is it `preferred` and a `-` to set `non_preferred`. No suffix indiates that there is no preference.
A `<Language>` in `<LanguageList>` that is not a `<LanguageCode>` is a custom language and can not have
a preference suffix. In the user's profile, only `preferred` languages are displayed.

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/baf99be5-8516-450c-a165-dda09f49e584n%40googlegroups.com.

Mercy Peng 彭筱婷

unread,
Sep 4, 2023, 11:04:40 AM9/4/23
to GAM for Google Workspace
Hi @Ross, Can you please provide a sample command to guide us how to use the command you provided?

<LanguageCode> ::=
        ach|af|ag|ak|am|ar|az|be|bem|bg|bn|br|bs|ca|chr|ckb|co|crs|cs|cy|da|de|
        ee|el|en|en-gb|en-us|eo|es|es-419|et|eu|fa|fi|fil|fo|fr|fr-ca|fy|
        ga|gaa|gd|gl|gn|gu|ha|haw|he|hi|hr|ht|hu|hy|ia|id|ig|in|is|it|iw|ja|jw|
        ka|kg|kk|km|kn|ko|kri|ku|ky|la|lg|ln|lo|loz|lt|lua|lv|
        mfe|mg|mi|mk|ml|mn|mo|mr|ms|mt|my|ne|nl|nn|no|nso|ny|nyn|oc|om|or|
        pa|pcm|pl|ps|pt-br|pt-pt|qu|rm|rn|ro|ru|rw|
        sd|sh|si|sk|sl|sn|so|sq|sr|sr-me|st|su|sv|sw|
        ta|te|tg|th|ti|tk|tl|tn|to|tr|tt|tum|tw|
        ug|uk|ur|uz|vi|wo|xh|yi|yo|zh-cn|zh-hk|zh-tw|zu
<Language> ::=
        <LanguageCode>[+|-]|
        <String>
<LanguageList> ::= "<Language>(,<Language>)*"

gam update user <UserItem> language clear|<LanguageList>


Please consider the environment before printing this email or attachment

This email and any attachments are confidential and may also be privileged. If you are not the addressee, do not disclose, copy, circulate or in any other way use or rely on the information contained in this email or any attachments. If received in error, notify the sender immediately and delete this email and any attachments from your system. Emails cannot be guaranteed to be secure or error free as the message and any attachments could be intercepted, corrupted, lost, delayed, incomplete or amended. Master Concept Group and its subsidiaries do not accept liability for damage caused by this email or any attachments and may monitor email traffic.

Ross Scroggs

unread,
Sep 4, 2023, 11:08:36 AM9/4/23
to google-ap...@googlegroups.com
gam update user <UserItem> language zh-cn+,en
----
Ross Scroggs



Mercy Peng 彭筱婷

unread,
Sep 4, 2023, 12:20:26 PM9/4/23
to GAM for Google Workspace
Thanks @Ross it works!
Reply all
Reply to author
Forward
0 new messages