Block and unblock web users
Это содержимое пока не доступно на вашем языке.
A blocked web user cannot log in to the panel, and blocking ends all of its open panel sessions. The customer and its other web users are not affected. This is the same as Block and Unblock on the System Management → Users screen. You can block any web user of a customer except the default user created together with the customer.
Both methods support trusted mode with i_customer.
blockWebUser
Section titled “blockWebUser”Blocks a web user and ends its panel sessions.
Parameters
Section titled “Parameters”| Name | Type | Required | Description |
|---|---|---|---|
i_web_user |
int | yes | ID of the web user |
Returns
Section titled “Returns”| Name | Type | Description |
|---|---|---|
result |
string | OK |
i_web_user |
int | ID of the blocked web user |
Example
Section titled “Example”call("blockWebUser", {"i_web_user": 57}){"result": "OK", "i_web_user": 57}unblockWebUser
Section titled “unblockWebUser”Unblocks a web user. It can log in again at once.
Parameters
Section titled “Parameters”| Name | Type | Required | Description |
|---|---|---|---|
i_web_user |
int | yes | ID of the web user |
Returns
Section titled “Returns”| Name | Type | Description |
|---|---|---|
result |
string | OK |
i_web_user |
int | ID of the unblocked web user |
Example
Section titled “Example”call("unblockWebUser", {"i_web_user": 57}){"result": "OK", "i_web_user": 57}