[comment]: # ({8790eaaa-8790eaaa})
# user.unblock

[comment]: # ({/8790eaaa-8790eaaa})

[comment]: # ({ae802b92-ae802b92})
### 描述

`object user.unblock(array userids)`

此方法允许unblock用户。

::: noteclassic
此方法仅适用于*超级管理员*用户类型。
调用该方法的权限可在用户角色设置中撤销。有关更多信息，请参阅
[User
roles](/manual/web_interface/frontend_sections/administration/user_roles)

:::

[comment]: # ({/ae802b92-ae802b92})

[comment]: # ({cdc313c2-cdc313c2})
### 参数

`(array)` 用于unblock的用户ID。

[comment]: # ({/cdc313c2-cdc313c2})

[comment]: # ({751d77e0-751d77e0})
### 返回值

`(object)` 返回一个包含未屏蔽用户ID的object
这些ID存储在`userids`属性下

[comment]: # ({/751d77e0-751d77e0})

[comment]: # ({b41637d2-b41637d2})
### 示例

[comment]: # ({/b41637d2-b41637d2})

[comment]: # ({487fb188-2d447a22})
#### 解除多用户封锁

解除两个用户的封禁.

请求:

```json
{
    "jsonrpc": "2.0",
    "method": "user.unblock",
    "params": [
        "1",
        "5"
    ],
    "auth": "3a57200802b24cda67c4e4010b50c065",
    "id": 1
}
```
响应:

```json
{
    "jsonrpc": "2.0",
    "result": {
        "userids": [
            "1",
            "5"
        ]
    },
    "id": 1
}
```

[comment]: # ({/487fb188-2d447a22})

[comment]: # ({e10b30be-e10b30be})
### 来源

CUser::unblock() 位于 *ui/include/classes/api/services/CUser.php* 文件中。

[comment]: # ({/e10b30be-e10b30be})
