Skip to content

Delete Existing User

Find existing user

Check to see if a user already exists with the same email address

POST - /1211/directory/public/users/query

{
  "email": null,
  "phone": null,
  "externalId": "KON1002"
}
{
  "totalItemCount": 1,
  "page": 0,
  "pageSize": 0,
  "items": [
    {
      "profile": {
        "id": "1563384",
        "name": "John Dough",
        "description": null,
        "uri": "https://api-handweave.dev.alertsense.io/api/v2/tenants/1211/directories/public/users/1563384"
      },
      "tenant": {
        "id": "1211",
        "name": "Konexus (CP)",
        "description": null,
        "uri": "https://api-handweave.dev.alertsense.io/api/v2/tenants/1211/directories"
      },
      "directory": {
        "id": "public",
        "name": "Public Directory",
        "description": null,
        "uri": "https://api-handweave.dev.alertsense.io/api/v2/tenants/1211/directories/public"
      }
    }
  ]
}

If the user already exists, we'll skip creationg so we can run updates

Cleanup existing user

Delete the existing user

DELETE - /1211/directory/public/users/1563384