Bulk Delete Users

Use this API to delete multiple users at one time. 

DELETE/adminui/user-management/v1/users/delete

The API request and response are in JSON format. Some characters, such as backslash (\) and double quotes (") in passwords or other fields may appear escaped in raw JSON responses. It is recommended to alway as parse responses using standard JSON parser to retrieve the correct values. 

Input ParametersInput Parameters

 

Parameter

Mandatory/
Optional

Data Type

Description

 userIds

Mandatory

Number

Specify the user ID of the user that needs to be deleted. 

newOwnerId

Optional

Number

Specify the existing user ID of the user to whom the deleted user's configurations must be transferred.

deleteResults

Optional

Boolean

Specify the value true or false. 
This parameter determines if the scan results must be deleted or not.

Sample - Bulk Delete UsersSample - Bulk Delete Users

API request

 curl --location --request DELETE '<qualys_base_url>/adminui/user-management/v1/users/delete' \
--header 'X-Requested-With: hfds' \
--header 'Cookie: QualysSession=07167e5bf6b2e336dac803a62c721a36' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <JWT token>' \
--data '
{"userIds": [1121646506],"newOwnerId": 1121646504, "deleteResults": false}

 

API Response

{
    "message": "Users successfully deleted"
}