DELETE Users

Deletes the given user. The user to delete cannot be in the Owner role. Also, the user making this request cannot delete their own account.

Request Information

URI Parameters

None.

Body Parameters

User to be deleted

User
NameDescriptionTypeAdditional information
UserId

globally unique identifier

None.

UserName

string

None.

FullName

string

None.

PhoneNumber

string

None.

Email

string

None.

IsLockedOut

boolean

None.

IsApproved

boolean

None.

Role

Role

None.

CompanyId

globally unique identifier

None.

Teams

Collection of Team

None.

Request Formats

application/json, text/json

Sample:
{
  "UserId": "05155f63-8c72-4bf1-a76c-b436fca42009",
  "UserName": "sample string 1",
  "FullName": "sample string 2",
  "PhoneNumber": "sample string 3",
  "Email": "sample string 4",
  "IsLockedOut": true,
  "IsApproved": true,
  "Role": {
    "Name": "sample string 1",
    "Description": "sample string 2"
  },
  "CompanyId": "5cd8443b-8fd9-4393-b0f0-2a4d93a91c27",
  "Teams": [
    {
      "TeamId": "0ef3691e-b307-41d5-a1a2-ee0e73c91e2b",
      "Name": "sample string 1",
      "Description": "sample string 2",
      "Users": [],
      "AssetGroups": [
        {
          "AssetGroupId": "a12b1bbe-122b-4ecc-98ce-e2fb5b522f7c",
          "Name": "sample string 1",
          "Description": "sample string 2",
          "ParentGroup": null,
          "DisplayOrder": 1,
          "FormValueNeededDate": "2024-11-22T13:03:05.3294867-08:00",
          "MeasurementValueNeededDate": "2024-11-22T13:03:05.3294867-08:00",
          "SourceSystemId": "sample string 3",
          "CompanyId": "a3e182ff-55a7-4ac3-ad3e-b647abb6a5ac",
          "CreateDate": "2024-11-22T13:03:05.3294867-08:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2024-11-22T13:03:05.3294867-08:00",
          "LastModifiedUser": "sample string 6"
        },
        {
          "AssetGroupId": "a12b1bbe-122b-4ecc-98ce-e2fb5b522f7c",
          "Name": "sample string 1",
          "Description": "sample string 2",
          "ParentGroup": null,
          "DisplayOrder": 1,
          "FormValueNeededDate": "2024-11-22T13:03:05.3294867-08:00",
          "MeasurementValueNeededDate": "2024-11-22T13:03:05.3294867-08:00",
          "SourceSystemId": "sample string 3",
          "CompanyId": "a3e182ff-55a7-4ac3-ad3e-b647abb6a5ac",
          "CreateDate": "2024-11-22T13:03:05.3294867-08:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2024-11-22T13:03:05.3294867-08:00",
          "LastModifiedUser": "sample string 6"
        }
      ],
      "SourceSystemId": "sample string 3",
      "CompanyId": "50689b38-782e-4af9-844d-3ece8204fd49",
      "CreateDate": "2024-11-22T13:03:05.3294867-08:00",
      "CreateUser": "sample string 5",
      "LastModifiedDate": "2024-11-22T13:03:05.3294867-08:00",
      "LastModifiedUser": "sample string 6"
    },
    {
      "TeamId": "0ef3691e-b307-41d5-a1a2-ee0e73c91e2b",
      "Name": "sample string 1",
      "Description": "sample string 2",
      "Users": [],
      "AssetGroups": [
        {
          "AssetGroupId": "a12b1bbe-122b-4ecc-98ce-e2fb5b522f7c",
          "Name": "sample string 1",
          "Description": "sample string 2",
          "ParentGroup": null,
          "DisplayOrder": 1,
          "FormValueNeededDate": "2024-11-22T13:03:05.3294867-08:00",
          "MeasurementValueNeededDate": "2024-11-22T13:03:05.3294867-08:00",
          "SourceSystemId": "sample string 3",
          "CompanyId": "a3e182ff-55a7-4ac3-ad3e-b647abb6a5ac",
          "CreateDate": "2024-11-22T13:03:05.3294867-08:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2024-11-22T13:03:05.3294867-08:00",
          "LastModifiedUser": "sample string 6"
        },
        {
          "AssetGroupId": "a12b1bbe-122b-4ecc-98ce-e2fb5b522f7c",
          "Name": "sample string 1",
          "Description": "sample string 2",
          "ParentGroup": null,
          "DisplayOrder": 1,
          "FormValueNeededDate": "2024-11-22T13:03:05.3294867-08:00",
          "MeasurementValueNeededDate": "2024-11-22T13:03:05.3294867-08:00",
          "SourceSystemId": "sample string 3",
          "CompanyId": "a3e182ff-55a7-4ac3-ad3e-b647abb6a5ac",
          "CreateDate": "2024-11-22T13:03:05.3294867-08:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2024-11-22T13:03:05.3294867-08:00",
          "LastModifiedUser": "sample string 6"
        }
      ],
      "SourceSystemId": "sample string 3",
      "CompanyId": "50689b38-782e-4af9-844d-3ece8204fd49",
      "CreateDate": "2024-11-22T13:03:05.3294867-08:00",
      "CreateUser": "sample string 5",
      "LastModifiedDate": "2024-11-22T13:03:05.3294867-08:00",
      "LastModifiedUser": "sample string 6"
    }
  ]
}

Response Information

Resource Description

NameDescriptionTypeAdditional information
Data

Object

None.

Total

integer

None.

Message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Data": {},
  "Total": 1,
  "Message": "sample string 2"
}