[comment]: # translation:outdated

[comment]: # ({733de228-82b6f6ff})
# 配置

[comment]: # ({/733de228-82b6f6ff})

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

`object user.provision(object/array users)`

此方法允许设置LDAP用户。

::: noteclassic
此方法仅适用于*Super admin(超级管理员)*类型的用户。可在用户角色设置中撤销调用该方法的权限，参阅[用户角色](/manual/web_interface/frontend_sections/users/user_roles)获取详情。
:::

[comment]: # ({/bec34a7c-a78ac238})

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

`(array)` 要设置的用户的id。

[comment]: # ({/c0aab0b4-d03ad838})

[comment]: # ({bcb326f0-26affb31})

### 返回值

`(object)` 在`userids`  属性下返回一个包含已配置用户id的对象。

[comment]: # ({/bcb326f0-26affb31})

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

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

[comment]: # ({5b6b0473-aef28656})
#### 配置多用户

创建两个用户账号。

[请求](/manual/api#执行请求):

```json
{
    "jsonrpc": "2.0",
    "method": "user.provision",
    "params": [
        "1",
        "5"
    ],
    "id": 1
}
```

响应:

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

[comment]: # ({/5b6b0473-aef28656})

[comment]: # ({287ccec1-ab3a6b91})
### 来源

CUser::provision() in *ui/include/classes/api/services/CUser.php*.

[comment]: # ({/287ccec1-ab3a6b91})
