Update User Status
Use this API to update the user's status. For example, you can change the status from 'Activate' to 'Deactivate'.
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 always parse responses using a standard JSON parser to retrieve the correct values.
Sample - Update User StatusSample - Update User Status
API request
curl --location --request PUT '<qualys_base_url>/adminui/user-management/v1/user/status' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <JWT_Token>
--data '{
"action": "DEACTIVATE",
"editUser": "<username>"
}'
Response
{
"userId": 1023557128,
"username": "<username>",
"status": "SUCCESS"
}
The new version of this API is compliant to RESTful conventions. The legacy V1 endpoint remain the same.
With this API, you can activate or deactivate a user. The action field is required and must be either ACTIVATE or DEACTIVATE; an absent, empty, or unrecognized action returns a 400 Bad Request error. This resource-oriented endpoint provides the same capability as the existing v1 update user status API.
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 always parse responses using a standard JSON parser to retrieve the correct values.
Input ParametersInput Parameters
| Parameter | Mandatory/ Optional |
Data Type | Description |
|---|---|---|---|
| userId | Mandatory | Integer | Specify the numeric ID of the user. |
Sample - Deactivate a UserSample - Deactivate a User
API Request
curl --location --request PATCH '<qualys_base_url>/adminui/user-management/v2/users/{userId}/status' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <JWT_Token>' \
--data-raw '
API Body
{
"action": "DEACTIVATE"
}'
API Response
{
"userId": 1229354639,
"username": "<username>",
"status": "SUCCESS"
}
| API Version | API Status | Release Date |
|---|---|---|
| /adminui/user-management/v1/user/status | To be deprecated | March 2027 |
| /adminui/user-management/v2/users/{userId}/status | Active | Oct 2026 |