Skip to main content
Version: 2.2.2

editUserDepartment

This method allows editing the relationship between the user, department, and position associated with a user. If the user already has a default department, it will be replaced and the new one will be considered the default. To use it, it is necessary to follow the standard documented below.

Java class
Requestweb\wwwroot\ws\java\admin\EditUserDepartmentRequestType.java
Returnweb\wwwroot\ws\java\admin\EditUserDepartmentResponseType.java

Request:

ID #RequiredDescription
IDXUser ID.
IDAREAXDepartment ID #.
IDFUNCXPosition ID #.

Request structure:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:admin">
<soapenv:Header/>
<soapenv:Body>
<urn:editUserDepartment>
<!--You may enter the following 3 items in any order-->
<urn:ID>?</urn:ID>
<urn:IDAREA>?</urn:IDAREA>
<urn:IDFUNC>?</urn:IDFUNC>
</urn:editUserDepartment>
</soapenv:Body>
</soapenv:Envelope>

Return:

ID #Description
returnSUCCESS: Created user primary key.
FAILURE: -1
StatusSUCCESS: SUCCESS
FAILURE: FAILURE
CodeSUCCESS: 1.
FAILURE: Code regarding the error that occurred.
RecordIdSUCESS: User ID (ID #).
FAILURE: N/A
RecordKeySUCESS: Modified primary key of the user.
FAILURE: N/A
CodeDescription
-1Unexpected error.
12Inexistent user.
15Inexistent department.
16Inexistent position.
17Inexistent relationship between department and position.