Use update instead of patch for update user (#480)

This is required in order for update user
phones/orgamizations/addresses/... clear to work
This commit is contained in:
Ross Scroggs
2017-04-16 12:14:17 -07:00
committed by Jay Lee
parent 0562ed3eb9
commit ab94208bb5

View File

@@ -7048,7 +7048,7 @@ def doUpdateUser(users, i):
body[u'emails'] = [{u'type': u'custom', u'customType': u'former_employee', u'primary': False, u'address': user_primary}]
sys.stdout.write(u'updating user %s...\n' % user)
if body:
callGAPI(cd.users(), u'patch', userKey=user, body=body)
callGAPI(cd.users(), u'update', userKey=user, body=body)
if admin_body:
callGAPI(cd.users(), u'makeAdmin', userKey=user, body=admin_body)