Skip to main content
Version: 2.2.1

disableUser

This method allows disabling/enabling a user. To use it, it is necessary to follow the standard documented below.

Java class
Requestweb\wwwroot\ws\java\admin\DisableUserRequestType.java
Returnweb\wwwroot\ws\java\admin\DisableUserResponseType.java

Request:

ID #RequiredDescription
codesXID of the user to be enabled/disabled.

Request structure:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:admin">
<soapenv:Header/>
<soapenv:Body>
<urn:disableUser>
<urn:cd>
<!--Zero or more repetitions:-->
<urn:codes>?</urn:codes>
</urn:cd>
</urn:disableUser>
</soapenv:Body>
</soapenv:Envelope>

Return:

ID #Description
returnSUCCESS: 0.
FAILURE: -1
StatusSUCCESS: SUCCESS
FAILURE: FAILURE
CodeSUCCESS: 1.
FAILURE: Code regarding the error that occurred.
CodeDescription
7Null user ID.
12Inexistent user.
20At least one record was not enabled/disabled successfully. Using this web service to enable/disable multiple users in one same call is depreciated. Use the web service once for each user.