Terminate users

You can terminate users through an API call.

Step 1: Create the Request Payload File

The request body of this API call needs to include the ID of the visit that you want to add the form to.

Create a new JSON file called terminate<username>.json (where <username> is the name of the user) and copy the following:

PATCH /scim/TESTTRIAL/1.0/users
HOST: <hostname>
Accept: application/json
Authorization: Bearer eyJhGciO1J5...-MBqc
{
   "schemas":[
      "urn:ietf:params:scim:schemas:core:2.0:User",
      "urn:umt:extension:schema:user"

   ],
  "username": "testUserName",
  "active": false
}

Step 2: Run the cURL call

Run the following cURL call to add the user to your study using the request payload file.

curl -X POST "https://hs-umt-scim.oracleindustry.com/scim/<trialname>/1.0/users -d "@terminate<username>.json"