I'm working to update the user info using googleapi in php.
When I run this code it will make the predefine field which I don't want to update empty. As in this code I'm not setting Title as the title is already set but once I run this code the title will become empty.
How can I resolve it?
$organization = new \Google\Service\Directory\UserOrganization();
$organization->setPrimary(TRUE);
// $organization->setTitle('Lead Developer');
$organization->setDepartment('Dev');
$googleUser->setOrganizations([$organization]);
$gsdService->users->update('fname.lname@domain.com', $googleUser);