Delete User
Use this API to delete a user.
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.
Sample - Delete UserSample - Delete User
API request
curl --location --request DELETE '<qualys_base_url>/adminui/user-management/v1/user' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <JWT_Token>' \
--data '{
"deleteUsers": "rbac_aq2",
"newOwner": "rbac_gc"
}'
If user ownership needs to be provided, that must be added in the newOwner field. NewOwner can be fetched from the List Nominee Users API. It provides the nominee user based on the 'qwebuserrole' parameter of the user being deleted.
API Response
{
"userId": 957239015,
"username": "rbac_aa1",
"status": "SUCCESS"
}