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

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

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

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

此方法允许配置LDAP用户。

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

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

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

`(array)` 要配置的用户ID。

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

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

`(object)` 返回一个 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() 在 *ui/include/classes/api/services/CUser.php* 中。

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