Navigation:  Integration via SOAP web services > Published web services > Administration >

editUserDepartment

Previous  Top  Next

This method enables to edit 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

Request

web\wwwroot\ws\java\admin\EditUserDepartmentRequestType.java

Return

web\wwwroot\ws\java\admin\EditUserDepartmentResponseType.java

 

Request

ID #

Required

Description

ID

X

User's reg. code #.

IDAREA

X

Department ID #.

IDFUNC

X

Position ID #.

 

Return

ID #

Description

return

SUCESS: Primary key of the user.

FAILURE: -1

Status

SUCCESS: SUCCESS

FAILURE: FAILURE

Code

SUCCESS: 1

FAILURE: code regarding the error that occurred.

RecordID

SUCESS: User ID (ID #).

FAILURE: N/A

RecordKey

SUCESS: Modified primary key of the user.

FAILURE: N/A

 

Code

Description

-1

Unexpected error.

12

Impossible to find user.

15

Inexistent department.

16

Inexistent position.

17

Inexistent relationship between department and position