Update Users in Bulk API

Use this API to update multiple users in the API user’s scope.

POST /qps/rest/1.0/update/saq/user/

Permissions

The user must have the Security Assessment Questionnaire (SAQ) module enabled, the User must have API ACCESS permission, and the Output includes users within the API user's scope.

Input ParameterInput Parameter

The following input elements are optional and act as filters. When multiple elements are specified, parameters are combined using a logical AND.

Parameter Mandatory/Optional Data Type Description Allowed Operators
id Optional Integer ID of the users EQUALS, IN
uuid Optional Integer Unique IDs of the user EQUALS
firstName Optional Text First names of the users CONTAINS, EQUALS
lastName Optional Text Last name of the users CONTAINS, EQUALS
company Optional Text Company of the users CONTAINS, EQUALS
title Optional Text Title of the user's work profile CONTAINS, EQUALS
emailAddress Optional Text Email address of the users CONTAINS, EQUALS
userName Optional Text User name of the user

CONTAINS, EQUALS

tags.tag.id Optional Integer Tag applied to the user EQUALS, IN
tags.tag.name Optional Text Tag name applied to user CONTAINS, EQUALS

Sample - Update Users in BulkSample - Update Users in Bulk

API Request

curl -u "USERNAME:PASSWORD" -H "content-type: text/xml" -X "POST"
--data-binary @-
"https:// <qualysbaseurl>/qps/rest/1.0/update/saq/user" < file.xml
Note: "file.xml" contains the request POST data. 

Request POST Data

<?xml version="1.0" encoding="UTF-8"?>
<ServiceRequest>
    <filters>
        <Criteria field="id" operator="IN">767231592,713091591</Criteria>
    </filters>
    <data>
        <User>
            <lastName>user-api-renamed3</lastName>
        </User>
    </data>
</ServiceRequest>

Response

<?xml version="1.0" encoding="UTF-8"?>
<ServiceResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://qualysapi.p01.eng.sjc01.qualys.com/qps/xsd/1.0/saq/user.xsd">
    <responseCode>SUCCESS</responseCode>
    <count>2</count>
    <data>
        <User>
            <id>713091591</id>
            <uuid>d78bbe2c-5396-48ea-92cc-03d0076ee839</uuid>
            <firstName>Invitee123123</firstName>
            <lastName>user-api-renamed3</lastName>
            <company>VendorForExistingUser_gs4</company>
            <emailAddress>maher@qualys.com</emailAddress>
            <userName>invitee.user23@qualys</userName>
            <tags>
                <Tag>
                    <id>18975646</id>
                    <name>CLV-ALL</name>
                </Tag>
                <Tag>
                    <id>24504212</id>
                    <name>AssetTagTest</name>
                </Tag>
            </tags>
        </User>
        <User>
            <id>767231592</id>
            <uuid>4f512fb6-4d31-471a-bb22-7f7b97755caf</uuid>
            <firstName>fadi14-renamed</firstName>
            <lastName>user-api-renamed3</lastName>
            <company>qualys-fadi14</company>
            <emailAddress>fbouzommita@qualys.com</emailAddress>
            <userName>newvendor.lastnamevendor@vendor_5hm</userName>
        </User>
    </data>
</ServiceResponse>

XSDXSD

<platform API server>/qps/xsd/1.0/saq/user.xsd