Changes the status (enabled/disabled) of the specified infoRouter user account.
/srv.asmx/ChangeUserStatus
/srv.asmx/ChangeUserStatus?authenticationTicket=...&UserName=...&StatusCode=.../srv.asmx/ChangeUserStatus (form data)http://tempuri.org/ChangeUserStatus| Parameter | Type | Required | Description |
|---|---|---|---|
authenticationTicket |
string | Yes | Authentication ticket obtained from AuthenticateUser. |
UserName |
string | Yes | The username of the account whose status will be changed. |
StatusCode |
int | Yes | The new status to apply. Valid values: 0 = disable the account, 1 = enable the account. |
<response success="true" error="" />
<response success="false" error="[ErrorCode] Error message" />
System administrator. Only system administrators can change user account status.
GET /srv.asmx/ChangeUserStatus
?authenticationTicket=3f2504e0-4f89-11d3-9a0c-0305e82c3301
&UserName=jdoe
&StatusCode=0
HTTP/1.1
GET /srv.asmx/ChangeUserStatus
?authenticationTicket=3f2504e0-4f89-11d3-9a0c-0305e82c3301
&UserName=jdoe
&StatusCode=1
HTTP/1.1
POST /srv.asmx/ChangeUserStatus HTTP/1.1
Content-Type: application/x-www-form-urlencoded
authenticationTicket=3f2504e0-4f89-11d3-9a0c-0305e82c3301
&UserName=jdoe
&StatusCode=0
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:tns="http://tempuri.org/">
<soap:Body>
<tns:ChangeUserStatus>
<tns:AuthenticationTicket>3f2504e0-4f89-11d3-9a0c-0305e82c3301</tns:AuthenticationTicket>
<tns:UserName>jdoe</tns:UserName>
<tns:StatusCode>0</tns:StatusCode>
</tns:ChangeUserStatus>
</soap:Body>
</soap:Envelope>
StatusCode=1 to re-enable a previously disabled account.| Error | Description |
|---|---|
[900] Authentication failed |
Invalid or missing authentication ticket. |
[901] Session expired or Invalid ticket |
The ticket has expired or does not exist. |
| User not found | The specified username does not exist. |
| Access denied | The calling user is not a system administrator. |
SystemError:... |
An unexpected server-side error occurred. |