Logically delete one or more users

post

/rest/users/delete

Executes the SOAP-compatible DeleteUser business operation. Users are inactivated and their effective-dated role assignments are expired; physical user rows are not deleted. companyGuid is optional and is passed to the existing business layer for system-date context.

Request

Header Parameters
Back to Top

Response

200 Response

Users logically deleted successfully.

400 Response

Invalid collection or missing userId.

401 Response

Authentication failed.

403 Response

Authorization failed for UserService/deleteUser.

404 Response

User was not found.

409 Response

User is already inactive.

500 Response

Uncatalogued business or transaction error.
Back to Top

Examples

This example describes how to logically delete one or more users.

Example cURL Command

Use the following cURL command to submit a request on the REST resource:

curl -X POST \
     -H "Accept: application/json" \
     -H "Content-Type: application/json" \
     -u username:password \
     "http://server:port/PASJava/rest/users/delete" \
     -d '{"Use this placeholder to plug-in the example request body given below"}'

Example Request Body in JSON Format

The following shows an example of the request body in JSON format:

{
  "companyGuid": "{{companyGuid}}",
  "users": [
    {
      "userId": "{{user2}}"
    },
    {
      "userId": "{{user3}}"
    }
  ]
}

Example Response Body in JSON Format

The following shows an example of the response body in JSON format:

{
  "status": "success"
}


Example Request Body in XML Format

The following shows an example of the request body in XML format:

<request>
  <companyGuid>{{companyGuid}}</companyGuid>
  <users>
    <user>
      <userId>{{user2}}</userId>
    </user>
    <user>
      <userId>{{user3}}</userId>
    </user>
  </users>
</request>

Example Response Body in XML Format

The following shows an example of the response body in XML format:

<response>
  <status>success</status>
</response>
Back to Top