We have tried numerous GAM update command to update a custom attribute via a csv file. We have used the following command. The field in Google Workspace is M365ImmutabelID. It is a text field.
gam csv M365.csv gam update M365ImmutableID "~M365"
gam csv M365.csv gam update M365ImmutableID '~M365'
gam csv M365.csv gam update M365ImmutableID ~M365
gam csv M365.csv gam update user M365ImmutableID "~M365"
gam csv M365.csv gam update user M365ImmutableID '~M365'
gam csv M365.csv gam update user M365ImmutableID ~M365
@james_deluca I would make sure you are using GAM Advanced XTD3 https://github.com/taers232c/GAMADV-XTD3 and send a note to the mailing list for that. The author is very responsive and active. Here you haven't really given enough information since we don't know what the csv looks like or even what error message you are receiving. The syntax for GAM is confusing and I have to often read the wiki on the syntax to read the docs 🙂 But take a look at https://github.com/GAM-team/GAM/wiki/GAM3DirectoryCommands#setting-custom-user-schema-fields-at-crea... as well. -KAM
What I do to update the immutableID is I encoded the AD GUID using a base64 encoding and a powershell script, I store it in a custom attribute in Active Directory and then I sync that with with GCDS. Works great for us but I know there are different ways that folks are syncing their users into Google.
Check out this document I think I may answer your question: https://www.youtube.com/redirect?event=video_description&redir_token=QUFFLUhqbldxampjRTlrNHRCNml1Snl...
Here is a YouTube video that explains this as well: https://www.youtube.com/watch?v=LjsVO7ApYJ4
This is the GAMadv-xtd3 syntax that we use:
gam csv <csv file> gam update user ~useracct <schema-name.fieldname> ~fieldvalue
What is the format of your CSV file?
I'd strongly suggest posting this question to the GAM mailing list at https://groups.google.com/forum/#!forum/google-apps-manager -- you're likely to get an authoritative response, often from one of the authors of GAM, if you post there.
Cheers,
Ian
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 |