Users API

Delete user

It removes the user from the list of users.

The user won't be deleted from the database for legal purposes. A user account is related with actions, consultations... so in order to preserve these logs, the account will be disabled but never deleted from the database.

DELETE/rest/msm/users/{userId}/
 Query parameters  none
 Header auth-token: token from authentication
 Header/Parameter  user identification
 Body none
Returns {"result":"ok"} or {"result" : "error"}
Required role KBA_MANAGER
Managed errors 401: insufficient privileges

Example request

curl 'http://localhost:8080/mwp/rest/msm/users/420/' -X DELETE -H 'auth-token: 65b3f1b1-0264-4c51-8b7b-1ba683d9f625' -H 'tenant:default'

Example response

{
"result":"ok"
}