Skip to main content
Version: 2.2.0

addUserToRole

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
Requestweb\wwwroot\ws\java\generic\AddUserToRoleRequestType.java
Returnweb\wwwroot\ws\java\generic\AddUserToRoleResponseType.java

Request:

ID #RequiredDescription
IdRoleXFunctional role ID #
IdUserXID of the user to be associated
IsDefaultSets the functional role as default for the user
1 - Yes
2 - No

Request structure:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:generic">
<soapenv:Header/>
<soapenv:Body>
<urn:addUserToRole>
<!--You may enter the following 3 items in any order-->
<urn:IdRole>?</urn:IdRole>
<urn:IdUser>?</urn:IdUser>
<!--Optional:-->
<urn:IsDefault>?</urn:IsDefault>
</urn:addUserToRole>
</soapenv:Body>
</soapenv:Envelope>

Return:

ID #Description
StatusSUCCESS: SUCCESS
FAILURE: FAILURE
DetailSUCCESS: Record(s) added.
FAILURE: message regarding the error that occurred.
CodeSUCCESS: 1.
FAILURE: Code regarding the error that occurred.
CodeDescription
49Functional role not entered
48Inexistent functional role
7Null user ID
12Inexistent user
30Invalid value. Field: IsDefault