Updates shared contacts in a Google Workspace tenant.
Update-GOSharedContacts
[-ShowPrereqs]
[<CommonParameters>]
Update-GOSharedContacts
-ConfigNode <String>
-Csv <String>
[-TranslationCsv <String>]
[-IgnoreErrors]
[-SkipValidation]
[-ValidateOnly]
[<CommonParameters>]
Use the Update-GOSharedContacts cmdlet to update shared contacts
in a Google Workspace tenant.
See the Notes section for cmdlet requirements.
Update-GOSharedContacts -ConfigNode Target -Csv 'shared_contacts.csv' -ValidateOnly
This example validates all data for the shared contacts in the shared_contacts.csv
file but does not perform the operation. This is a recommended first step so any
warnings can be addressed first.
Update-GOSharedContacts -ConfigNode Target -Csv 'shared_contacts.csv'
This example updates all shared contacts from the shared_contacts.csv file.
Update-GOSharedContacts -ConfigNode Target -Csv 'shared_contacts.csv' -TranslationCsv 'translations.csv'
This example updates all shared contacts from the shared_contacts.csv file.
Data is translated according to the mappings provided in the translations.csv
file.
The config.psd1 configuration node to use.
Type: String
Parameter Sets: Action
Aliases:
Accepted values: Source, Target
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The path to a CSV file containing objects to update. See the Notes section for the required format.
Type: String
Parameter Sets: Action
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Validation errors stop execution prior to the update by default. Use
-IgnoreErrors to proceed with error records omitted.
Note that global errors are not impacted by this option.
Type: SwitchParameter
Parameter Sets: Action
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Prints the cmdlet prerequisites.
Type: SwitchParameter
Parameter Sets: Help
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Skips the property validation stage of the update. Data supplied via the
-Csv parameter will be used as-is, which may lead to runtime errors.
Type: SwitchParameter
Parameter Sets: Action
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The path to the CSV file containing translation mappings. The file must use
SourceName;TargetName as the field identifiers.
Type: String
Parameter Sets: Action
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Validation and update are both performed by default. Use -ValidateOnly to
perform the validation but skip the update.
It is recommended to run a -ValidateOnly pass first to identify potential
issues prior to updating data. Note that records with validation errors will
fail to update unless -IgnoreErrors is used, but records with validation
warnings proceed without the data triggering the warning. A -ValidateOnly pass
allows you to inspect these warnings before data is written and make any
necessary changes.
Type: SwitchParameter
Parameter Sets: Action
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Required config.psd1 keys
These configuration keys are scoped to the Source or Target node in config.psd1.
GOAdmin: The ID of your tenant’s administrator.
GOServiceAccountKey: The path to your service account’s JSON key file.
GOTenant: The ID of your tenant. For example, source.org.
Optional config.psd1 keys
These configuration keys are scoped to the Source or Target node in config.psd1.
GOSharedContactsApi: The API to use to retrieve shared contacts. Valid values are People and Contacts.
Default: People
Required APIs
Admin SDKCloud Resource ManagerContactsGmailGoogle CalendarGoogle DrivePeopleRequired scopes
https://www.googleapis.com/auth/admin.directory.domain.readonlyhttps://www.googleapis.com/auth/admin.directory.group.readonlyhttps://www.googleapis.com/auth/admin.directory.orgunit.readonlyhttps://www.googleapis.com/auth/admin.directory.resource.calendar.readonlyhttps://www.googleapis.com/auth/admin.directory.user.readonlyhttps://www.googleapis.com/auth/calendar.readonlyhttps://www.googleapis.com/auth/cloudplatformprojects.readonlyhttps://www.googleapis.com/auth/contacts.readonlyhttps://www.googleapis.com/auth/directory.readonlyhttps://www.googleapis.com/auth/drive.readonlyhttps://www.googleapis.com/auth/gmail.readonlyhttps://www.googleapis.com/auth/admin.directory.grouphttps://www.googleapis.com/auth/admin.directory.resource.calendarhttps://www.googleapis.com/auth/admin.directory.userhttps://www.googleapis.com/auth/calendarhttps://www.googleapis.com/auth/contactshttps://www.googleapis.com/auth/drivehttps://www.googleapis.com/auth/gmail.settings.sharinghttps://www.googleapis.com/auth/userinfo.emailRequired CSV format
| Property | Required | Multi-value | Notes |
|---|---|---|---|
| InScope | True | False | Allowed values: Yes, True, No and False. |
| Identity | True | False | Allowed values: ID, email address, display name. |
| PrimaryPhoneNumber | False | False | |
| StreetAddress | False | False | |
| City | False | False | |
| StateOrProvince | False | False | |
| PostalCode | False | False | |
| CountryCode | False | False |
InScope;Identity....