As of December 31st, 2023 ThreadFix 2.X has reached End of Life and is no longer supported. For any further information please contact the Success and Implementation team.
Delete User - API
/rest/{version}/users/{userId}/delete
Descriptor | Value |
---|---|
HTTP Method | DELETE |
Description | Deletes user from system. To obtain the userId value in the endpoint, run the Get Users - API call first. The user's id value in the response is the userId value that you use in this endpoint.  |
Required Permission | Manage Users |
Version Introduced | 2.6.2 |
Request Header Parameters
Parameter | Value | Required | Description |
---|---|---|---|
Accept | String | Yes | A value of ‘application/json’ must be provided. |
Sample Call:
curl -H 'Accept: application/json' -H "Authorization: APIKEY {apiKey}" -X DELETE http://localhost:8080/threadfix/rest/latest/users/{userId}/delete
Sample Output:
{
"message": "",
"success": true,
"responseCode": -1,
"object": "REST call to delete user is successful. User: 2"
}
Â
www.threadfix.it | www.coalfire.com
Copyright © 2024 Coalfire. All rights reserved.
This Information Security Policy is CoalFire - Public: Distribution of this material is not limited.