Cmdlets for Google Directory

Build 24.0.9060

Update-GoogleDirectory Cmdlet

Parameters   Output Objects  

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")

Copyright (c) 2024 CData Software, Inc. - All rights reserved.
Build 24.0.9060