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 | |
---|---|
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 |
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 |
---|---|
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 |