GAM Clearing Custom Attribute fieldData

246 views
Skip to first unread message

Michael Donahue

unread,
Aug 24, 2023, 8:05:31 PM8/24/23
to GAM for Google Workspace
Just started working with custom schema and I'm unable to figure out how to clear a field when the fieldType is looking for EMAIL. I can clear the field if it's a STRING type but can't seem to figure out what to use for EMAIL type.

gam update user <USER> Account_Hold_Status.Reason ""

User: userATwhatever.com, Updated

For the EMAIL fieldType

gam update user <USER> Account_Hold_Status.Requestor ""

User: userATwhatever.com, Update Failed: Invalid Schema Value

Tried: "" | " " | @ | """" | ' " " ' | \"\"


Does anyone know what blank email field entry might be?

Thanks,

Michael

Ross Scroggs

unread,
Aug 24, 2023, 8:17:44 PM8/24/23
to google-ap...@googlegroups.com

--
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/7cc2c3ab-0e67-48d6-b7d0-f78ec7ba0966n%40googlegroups.com.


--

Maj Marshall Giguere

unread,
Aug 24, 2023, 9:19:25 PM8/24/23
to google-ap...@googlegroups.com
Michael;

Have you tried  the "clearschema" option

$> gam update user some...@example.com clearschema Account_Hold_Status.Reason



Maj Marshall E Giguere

NH Wing Director of IT

Civil Air Patrol, U.S. Air Force Auxiliary

GoCivilAirPatrol.com

nhwg.cap.gov

Volunteers serving America's communities, saving lives, and shaping futures.



--

Maj Marshall Giguere

unread,
Aug 24, 2023, 9:24:23 PM8/24/23
to google-ap...@googlegroups.com

Maj Marshall E Giguere

NH Wing Director of IT

Civil Air Patrol, U.S. Air Force Auxiliary

GoCivilAirPatrol.com

nhwg.cap.gov

Volunteers serving America's communities, saving lives, and shaping futures.


Michael Donahue

unread,
Aug 24, 2023, 9:52:31 PM8/24/23
to GAM for Google Workspace
Thank you Major Giguere,

No I hadn't. Thank you. Worked much better than what I was doing.  Docs example made it seem that it would clear for all users. Used with or without the Field so:
as in your example

gam update user <USER> clearschema Account_Hold_Status.Requestor

worked on a single field entry—and

gam update user <USER> clearschema Account_Hold_Status

cleared all fields for Account_Hold_Status for the user.


Thanks again.


Reply all
Reply to author
Forward
0 new messages