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.
Identity Manager
To prevent the deletion of all organizations, you must include a mandatory filter element in your TEWS request.
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.
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.
Reference: For detailed guidance on implementing event listeners, refer to the official product documentation: .