Preventing Unintentional Deletion of All Organizations via TEWS Calls
search cancel

Preventing Unintentional Deletion of All Organizations via TEWS Calls

book

Article ID: 228124

calendar_today

Updated On:

Products

CA Identity Manager CA Identity Governance CA Identity Portal CA Identity Suite

Issue/Introduction

When using Transaction Engineered Web Services (TEWS) to remove an organization in Identity Manager, the default API behavior, if left unfiltered, is to apply the command globally. This can result in the accidental removal of all organizations within the environment. This article provides the method to prevent this by properly implementing filter elements in your TEWS requests.

Environment

Identity Manager

Resolution

To prevent the deletion of all organizations, you must include a mandatory filter element in your TEWS request.

  1. Correct TEWS Request Structure: Ensure your API call includes the specific filter element targeting the organization name. If the filter is omitted, the system will process the request against all organizations.

    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">   <soapenv:Body>      <RemoveOrganization xmlns="http://tews.identity.ca.com/">         <Filter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="SimpleFilter" property="ORG_NAME" operator="EQUALS" value="[YourOrganizationName]" />      </RemoveOrganization>   </soapenv:Body></soapenv:Envelope>
  2. Safeguarding via Event Listeners: There is no native "safeguard" mechanism in the standard TEWS API to block requests missing a filter. For production environments, it is strongly recommended that you develop custom event listeners to intercept and validate organization deletion requests before they are executed.

  3. Reference: For detailed guidance on implementing event listeners, refer to the official product documentation: Identity Manager Event Listeners.