Although available in the API, deleting users is not advised because the information about who performed some steps / started some case will be lost...
The best solution is to deactivate a user when he is no longer supposed to have access to the platform.
Anyway, to delete a user, you need to perform a DELETE request on API/identity/user with in the request payload ["102"] or ["102","103","104"] if you want to delete several users.
To deactivate a user, you need to perform a PUT request on API/identity/user/102 with in the request payload {enabled:false}
Actually, this is part of the REST API, not Java API. So the Javadoc is irrelevent. The REST API documentation is here. We will update the part about deleting a resource because it is not accurate.
Thank you for pointing that out. Putting the user in the disable state is clearly a better aproach and will definitely suit my purpose.
But when I execute the PUT method with {"enabled":"false"} as a payload what I get as an answer is "...descriptor does not contain field updates". I also made an attempt with {"user_state":"DISABLED"} based on the get response but it does not work that much either.
If i made a put with parameters described in the documentation page, the user is updated as expected.
Bonitasoft empowers development teams with Bonita, the open-source and extensible platform to solve the most demanding process automation use cases. The Bonita platform accelerates delivery of complex applications with clear separation between capabilities for visual programming and for coding. Bonita integrates with existing solutions, orchestrates heterogeneous systems, and provides deep visibility into processes across the organization.