The content below is for Apache Syncope <= 1.2 - for later versions the Reference Guide is available.
Syncope Client Library
In order to leverage the Syncope Client Library (from Java), you need to setup a Maven-based project with at least the following dependency (replace
1.2.6 with your actual Syncope version):
The following code snippet will first query for all users and then request bulk action to delete all users. Naturally, depending on the actual total number of users, some adjustments might be needed.
Please note the
false parameter in the call at line
12: this saves time as will not require Syncope to fetch virtual attributes' values from external resources.
Rather then deleting all users, a restricting search condition can be used by replacing line
Raw HTTP requests
When only relying on raw HTTP requests, the following steps are required:
where X and Y are respectively page number and page size; for each invocation take note of
idproperty for each reported user
POST /rest/users/bulkwith headers
and payload like as follows:
Accept: application/json, Content-Type: application/json
Rather then deleting all users, a restricting search condition can be used by replacing the first invocation above with
More information by consulting the REST API reference.