On this page
Table of Contents | ||||
---|---|---|---|---|
|
Snap type: | Transform |
---|
...
Description: | This Snap updates users, groups and org units in Google Directory.
|
---|
...
Prerequisites: | [None] |
---|
...
Support and limitations: |
---|
...
- Ultra pipelines: May work in Ultra Pipelines.
- Spark mode (Deprecated): Not supported in Spark - Deprecated mode.
Works in Ultra Tasks. | ||
Account: | This Snap uses account references created on the Accounts page of SnapLogic Manager to handle access to this endpoint. See |
---|
...
Google Directory Accounts for information on setting up this type of account.
|
...
Views: |
|
---|
Settings | ||
---|---|---|
Label |
Required. The name for the Snap. You can modify this to be more specific, especially if you have more than one of the same Snap in your pipeline. | ||
Resource |
Required. The type of resource to be created. The options available include:
Default value: user |
Execute during preview
...
Enables you to execute the Snap during the Save operation so that the output view can produce the preview data.
Default value: Not selected
...
Action | Required. The type of action to perform. The options available include:
Use the patch option to send only the data for the specific fields you are updating and minimize the size of the update request. See Google's documentation on Patch (partial update) for more information. Default value: update |
---|
|
|
---|
Supported Attributes by Resource
User
- userKey - Required.
See the API documentation referenced at the bottom of the page for the complete list of optional field properties.
...
Note You can write and update custom fields in a user profile. You must define the custom schema on the domain prior to use.
User.Photo
- userkey - Required.
- photoData - Required for update.
Note: photoData should be provided as a base64 string.
- See the API documentation referenced at the bottom of the page for the complete list of optional field properties.
...
Group
- groupKey - Required.
- See the API documentation referenced at the bottom of the page for the complete list of optional field properties.
...
OrgUnit
- customerID - Required.
- orgUnitPath - Required.
- See the API documentation referenced at the bottom of the page for the complete list of optional field properties.
...
Examples
JSON to add a User.photo
Code Block |
---|
...
[
{
"kind": "admin#directory#user#photo",
"id": string,
"etag": etag,
"primaryEmail": string,
"mimeType": string,
"height": integer,
"width": integer,
"photoData": bytes
}
] |
...
JSON for Updating a User
In this example, the user Jane Doe is now Jane Smith, so her familyName is being updated. She is also being added to the TestOrg orgunit.
Code Block |
---|
[
{
"userKey": "janedoe@example.com",
"name": {
"familyName": "Smith",
"givenName": "Jane"
},
"orgUnitPath": "/TestOrg"
}
] |
Related Information
...
See Also
...
...
...
...
...
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|