Skip to main content
Version: 2.2.1

editUser

This method allows editing the data of a user. To edit it, it is necessary to follow the standard documented below.

Java class
Requestweb\wwwroot\ws\java\admin\EditUserRequestType.java
Returnweb\wwwroot\ws\java\admin\EditUserResponseType.java

Request:

ID #RequiredDescription
IDXUser ID.
NAMEXUser name.
LOGINXName used by the user to log into the system
PASSXUser password.
EMAILXUser e-mail address.
CDLEADERLeader ID.
LANGUAGEEnter the user language code, in accordance with the "Database Encoding" column of the Localization section, in the System Requirements document

Request structure:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:admin">
<soapenv:Header/>
<soapenv:Body>
<urn:editUser>
<!--You may enter the following 7 items in any order-->
<urn:ID>?</urn:ID>
<urn:NAME>?</urn:NAME>
<urn:LOGIN>?</urn:LOGIN>
<urn:PASS>?</urn:PASS>
<urn:EMAIL>?</urn:EMAIL>
<!--Optional:-->
<urn:LANGUAGE>?</urn:LANGUAGE>
<!--Optional:-->
<urn:CDLEADER>?</urn:CDLEADER>
</urn:editUser>
</soapenv:Body>
</soapenv:Envelope>

Return:

ID #Description
returnSUCCESS: Primary key of the position (CDUSER).
FAILURE: -1
StatusSUCCESS: SUCCESS
FAILURE: FAILURE
CodeSUCCESS: 1.
FAILURE: Code regarding the error that occurred.
RecordIdSUCESS: User ID.
FAILURE: N/A
RecordKeySUCCESS: User primary key.
FAILURE: N/A
CodeDescription
3field¹: The maximum size for this field is 50.
4Error identifying the user. There is more than one record with the same login.
5It is not allowed to use quotation marks in the login field.
6Null user login.
7Null user ID.
8Null user name.
9Null password.
10Null or inexistent language.
11The entered leader does not exist.
12Inexistent user.
15Inexistent department.
16Inexistent position.
18The user ID cannot be equal to the leader ID #.
19Invalid relationship between position and department.
59Language not supported by the database.
60Inexistent language.
89Null user e-mail.
info

¹ - IDUSER, IDLOGIN