Update-GoogleDirectory Cmdlet
Updates Google Directory data.
Syntax
Update-GoogleDirectory [parameters]
Remarks
The Update-GoogleDirectory cmdlet allows you to use a syntax similar to SQL UPDATE statements to update Google Directory data.
$conn = Connect-GoogleDirectory -InitiateOAuth 'GETANDREFRESH' -OAuthClientId 'OAuthClientId' -OAuthClientSecret 'OAuthClientSecret' Update-GoogleDirectory -Connection $conn -Table "Group" -Columns @("Email") -Values @("[email protected]") -Id "S"The Where parameter can also be used to specify the primary key of the table:
Update-GoogleDirectory -Connection $conn -Table "Group" -Columns @("Email") -Values @("[email protected]") -Where "Id = 'S'"The primary key can also be passed to the cmdlet along the pipeline:
Select-GoogleDirectory -Connection $conn -Table Group -Where "CustomerId = 'eyt593htjgh'" | Update-GoogleDirectory -Columns @("CustomerId") -Values @("eyt593htjgh 2")