Skip to main content
Version: 2.2.1

addUserDepartment

This method allows adding a relationship between user, department, and position. For this addition, it is necessary to follow the standard documented below.

Java class
Requestweb\wwwroot\ws\java\admin\AddUserDepartmentRequestType.java
Returnweb\wwwroot\ws\java\admin\AddUserDepartmentResponseType.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:addUserDepartment>
<!--You may enter the following 3 items in any order-->
<urn:ID>?</urn:ID>
<urn:IDAREA>?</urn:IDAREA>
<urn:IDFUNC>?</urn:IDFUNC>
</urn:addUserDepartment>
</soapenv:Body>
</soapenv:Envelope>

Return:

ID #Description
ReturnSUCCESS: Primary key of the user (CDUSER)
FAILURE: -1
StatusSUCCESS: SUCCESS
FAILURE: FAILURE
DetailSUCCESS: Record successfully associated.
FAILURE: message regarding the error that occurred.
CodeSUCCESS: 1.
FAILURE: Code regarding the error that occurred:
â–ª 7 - Null user ID.
â–ª 12 - Inexistent user.
â–ª 13 - Null position ID #.
â–ª 14 - Null department ID #.
â–ª 15 - Inexistent department.
â–ª 16 - Inexistent position.
â–ª 19 - Inexistent relationship between department and position.