beautypg.com

User sync api deleteusers operation, User sync api deleteusers operation 65 – Google Apps Security and Compliance Services Web Services Application Programming Interface Guide, Early Access Version 1.5 User Manual

Page 67

background image

User Sync API

65

User Sync API DeleteUsers Operation

ModifyUsers v.15,
JAX WS 2.0 Example

This v.1.5 JAX-WS 2.0 example is using the PMP password (pword) for
authentication.

// AuthElem

AuthElem authElem = new AuthElem();

authElem.setApiKey("*your api key here*");

authElem.setEmail("[email protected]");

authElem.setPword("password");

List apiPatchList = new

ArrayList(1);

UserRecordPatch apiPatch = new UserRecordPatch();

apiPatch.setAddress("[email protected]");

AddressList addAliasList = new AddressList();

addAliasList.getAddress().add("[email protected]");

apiPatch.setAddAliases(addAliasList);

AddressList removeAliasList = new AddressList();

removeAliasList.getAddress().add("[email protected]");

apiPatch.setDeleteAliases(removeAliasList);

apiPatchList.add(apiPatch);

List apiStatus = syncPort.modifyUsers(authElem,

apiPatchList);

Operation

DeleteUsers

Request: DeleteUsers (AuthElem, Addresses)

Response: DeleteUsersResponse holding UserDeleteStatus for each user

Description

Deletes an unlimited list of users (specified by address), and all associated user
information.

The DeleteUsers request contains:

AuthElem -- This required struct sets the authorization credentials for each
request. See “Authorization” on page 43. This is required.

Type: struct

Addresses -- An unlimited list of user addresses to delete. This is required.

Type: string