changeUserStatus
This method allows enabling or disabling a system user. For this operation, it is necessary to follow the standard documented below.
Java class | |
---|---|
Request | web/wwwroot/ws/java/administration/ChangeUserStatusRequestType.java |
Return | web/wwwroot/ws/java/administration/ChangeUserStatusResponseType.java |
Request:
ID # | Required | Description |
---|---|---|
IdUser | X | User ID |
UserStatus | X | User status (1- Active, 2 - Inactive) |
Request structure:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:admin">
<soapenv:Header/>
<soapenv:Body>
<urn:changeUserStatus>
<!--You may enter the following 2 items in any order-->
<urn:IdUser>?</urn:IdUser>
<urn:UserStatus>?</urn:UserStatus>
</urn:changeUserStatus>
</soapenv:Body>
</soapenv:Envelope>
Return:
ID # | Description |
---|---|
Status | SUCCESS: SUCCESS FAILURE: FAILURE |
Detail | SUCCESS: User enabled SUCCESS: User disabled FAILURE: Message regarding the error that occurred |
Code | SUCCESS: 1. FAILURE: Code regarding the error that occurred |
Code | Description |
---|---|
7 | Null user ID |
12 | Inexistent user |
50 | UserStatus not entered |
51 | The userStatus field accepts only the (1,2) values |