Skip to main content
Version: 2.2.3

deleteUserDepartment

This method allows deleting a relationship between the user, department, and position. To do so, it is necessary to follow the standard documented below.

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

Return:

ID #Description
ReturnSUCCESS: Primary key of the user (CDUSER)
FAILURE: -1
StatusSUCCESS: SUCCESS
FAILURE: FAILURE
DetailSUCCESS: Record(s) deleted
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.
▪ 69 - User's default department.
▪ 70 - Inexistent relationship between user and department/position