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

addUserToRole

Previous  Top  Next

This method allows associating a user with a functional role. To associate a user with a functional role, it is necessary to follow the standard documented below.

 

Java class

Request

web\wwwroot\ws\java\generic\AddUserToRoleRequestType.java

Return

web\wwwroot\ws\java\generic\AddUserToRoleResponseType.java

 

Request

ID #

Required

Description

IdRole

X

Functional role ID #

IdUser

X

ID of the user to be associated

IsDefault

 

Sets the functional role as default for the user

1 – Yes

2 – No

 

Return

ID #

Description

Status

SUCCESS: SUCCESS

FAILURE: FAILURE

Detail

SUCCESS: Record(s) added.

FAILURE: Message regarding the error that occurred.

Code

SUCCESS: 1

FAILURE: code regarding the error that occurred.

 

Code

Description

49

Functional role not entered

48

Inexistent functional role

7

Null user ID #

12

Inexistent user

30

Invalid value. Field: IsDefault