Google Directory Delete

Google Directory Delete

On this page

Snap type:

Write


Description:

This Snap deletes users, user photos, groups and org units in Google Directory.

  • Expected upstream SnapsFile reader followed by any file parser followed by Structure.
  • Expected downstream SnapsAny file Formatter followed by File Writer.
  • Expected inputResource type and user key.
  • Expected output The specified resource type object key is deleted in Google Directory.


Prerequisites:

[None]


Support and limitations: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.

  • Verify that you have the correct Application scope defined for your account. See Google Directory Application Scope for more information.
  • Access tokens for Google Directory accounts expire in one hour. 
Views:
InputThis Snap has at most one document input view.
OutputThis Snap has exactly one document output view.
ErrorThis Snap has at most one document error view and produces zero or more documents in the view.

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:

  • user - If selected, user key is mandatory
  • userPhoto - If selected, user key is mandatory
  • orgunit - If selected, customer ID and org unit path are mandatory.
  • group - If selected, group key is mandatory.

Default value: user 

Loading


Loading

Required Attributes by Resource

The following attributes must be passed through to the Google Delete Snap for the delete to process.

User

  • userKey - The user in the API request. The value can be the user's primary email address, alias email address, or unique user ID.


User.Photo

  • userKey - The user in the API request. The value can be the user's primary email address, alias email address, or unique user ID. 

Orgunit

  • customerID - Required.
  • orgUnitPath - Required.

Group

  • groupKey - The group in the API request. The value can be the group's email address, group alias, or the unique group ID. 


Examples

Refer to the example - Perform End-to-End Operations in Google Directory.

JSON for Deleting a User or a User.Photo

[
    {
        "userKey": "user@example.com"
    }
]
 

JSON for Deleting an Orgunit

[
    {
        "customerID": "#########",
        "orgUnitPath": "TestOrg/SubOrg"
    }
]

The orgUnitPath does not take an initial backslash. If one is added, the orgunit will not be found.

JSON for Deleting a Group

[
    {
        "groupKey": "testgroup@example.com"
    }
]

See Also

Snap Pack History

 Click to view/expand

Release

Snap Pack Version

Date

Type

Updates

November 2025

main33142

Stable

Enhanced the Google Directory Read Snap with the Include group members field that enables you to access information about the members of any read groups.

August 2025

main32088

 

Stable

Updated and certified against the current SnapLogic Platform release.

May 2025

main31019

 

Stable

Updated and certified against the current SnapLogic Platform release.

February 2025

main29887

 

Stable

Updated and certified against the current SnapLogic Platform release.

November 2024

main29029

 

Stable

Updated and certified against the current SnapLogic Platform release.

August 2024

main27765

 

Stable

Added Google Service Account to connect Google Directory Snaps to a data source.

May 2024

main26341

 

Stable

Updated and certified against the current SnapLogic Platform release.

February 2024

436patches26168

 

Latest

Enhanced the Google Directory Read Snap with an On empty result dropdown list that enables you to select the Snap behavior when no matching filter value is found.

February 2024

436patches25581

 

Latest

Fixed an issue with the Google Directory Read Snap that displayed a null pointer exception when the Filter attributes field set was configured with key-value entries.

February 2024

main25112

 

Stable

Updated and certified against the current SnapLogic Platform release.

November 2023

main23721

 

Stable

Updated and certified against the current SnapLogic Platform release.

August 2023

main22460

 

Stable

Updated and certified against the current SnapLogic Platform release.

May 2023

433patches22103

 

Latest

Fixed an issue with Google Directory Update Snap that could not add or update organizations and displayed the error, IO error occurred. The Snap now works as expected, allowing you to update the organization and IMS details successfully.

May 2023

main21015

 

Stable

Upgraded with the latest SnapLogic Platform release.

February 2023

main19844

 

Stable

Upgraded with the latest SnapLogic Platform release.

November 2022

main18944

 

Stable

Upgraded with the latest SnapLogic Platform release.

August 2022

main17386

 

Stable

4.29 Patch

429patches16728

 

Latest

Enhanced the Google Directory Insert Snap where the Snap did not display the original payload in the error view. Now, the original payload is passed to the error view.

Enhanced the Google Directory Update Snap where the original payload is displayed in the error view, but not under the original tag. Now the original payload is displayed under the original tag.

4.29

main15993

 

Stable

Upgraded with the latest SnapLogic Platform release.

4.28

main14627

 

Stable

Upgraded with the latest SnapLogic Platform release.

4.27

main12833

 

Stable

Upgraded with the latest SnapLogic Platform release.

4.26

main11181

 

Stable

Upgraded with the latest SnapLogic Platform release.

4.25

main9554

 

Stable

Enhanced the Google Directory Insert and Google Directory Update Snaps to support custom schema attributes. You can fetch these custom fields and their values in a user profile by adding them as custom schema attributes to upstream Snaps.






4.24 Patch

424Patch8638

 

Latest

Enhanced the Google Directory Read Snap by introducing two new field attributes, projection and customFieldMask, to retrieve custom schema fields.

4.24

main8556

Stable

Upgraded with the latest SnapLogic Platform release.

4.23 Patch

423Patch7817

 

Latest

Fixed the authorization issue in the Snap Pack by migrating to a verified Google OAuth application.

4.23

main7430

 

Stable

Upgraded with the latest SnapLogic Platform release.

4.22

main6403

 

Stable

Upgraded with the latest SnapLogic Platform release.

4.21

snapsmrc542

 

Stable

Upgraded with the latest SnapLogic Platform release.

4.20

snapsmrc535

 

Stable

Upgraded with the latest SnapLogic Platform release.

4.19

snaprsmrc528

 

Stable

Upgraded with the latest SnapLogic Platform release.

4.18

snapsmrc523

 

Stable

Upgraded with the latest SnapLogic Platform release.

4.17

ALL7402

 

Latest

Pushed automatic rebuild of the latest version of each Snap Pack to SnapLogic UAT and Elastic servers.

4.17

snapsmrc515

 

Latest

Added the Snap Execution field to all Standard-mode Snaps. In some Snaps, this field replaces the existing Execute during preview check box.

4.16

snapsmrc508

 

Stable

Upgraded with the latest SnapLogic Platform release.

4.15

snapsmrc500

 

Stable

Upgraded with the latest SnapLogic Platform release.

4.14

snapsmrc490

 

Stable

Upgraded with the latest SnapLogic Platform release.

4.13

snapsmrc486

 

Stable

Upgraded with the latest SnapLogic Platform release.

4.12

snapsmrc480

 

Stable

Upgraded with the latest SnapLogic Platform release.

4.11

snapsmrc465

 

Stable

Upgraded with the latest SnapLogic Platform release.

4.10

snapsmrc414

 

Stable

Upgraded with the latest SnapLogic Platform release.

4.9

snapsmrc405

 

Stable

Upgraded with the latest SnapLogic Platform release.

4.8

snapsmrc398

 

Stable

Upgraded with the latest SnapLogic Platform release.

4.7

snapsmrc382

 

Stable

Upgraded with the latest SnapLogic Platform release.

4.6

snapsmrc362

 

Stable

Upgraded with the latest SnapLogic Platform release.

4.5.1

snapsmrc344

 

Stable

Upgraded with the latest SnapLogic Platform release.

4.5

snapsmrc344

Stable

Enhanced the error view output to include error, reason, and resolution.