Actions54
- 通讯录 - 成员 Actions
- 通讯录 - 部门 Actions
- 通讯录 - 角色 Actions
- 通讯录 - 管理员 Actions
- 通讯录 - 子管理员 Actions
- 轻流应用接口 - 应用管理 Actions
- 数据内容 - 应用数据 Actions
- 数据流程接口 - 流程操作 Actions
- 其他 Actions
- 任务委托 Actions
- 高级设置 Actions
通讯录 - 角色 → 增加角色成员
AI-generatedSummary
Add members to a specified role in the Qingflow OA address book by providing the role ID and a list of user IDs.
Inputs
- Role ID (required) — The ID of the role to which members will be added, which can be obtained via the role list retrieval operation.
- Body (required) — A JSON object containing the required fields: roleId (integer) and userIds (array of user IDs) to be added to the role.
- Options — Optional parameters including batching options for concurrent requests (batch size and interval) and request timeout in milliseconds.
Output shape
a list of items, each representing the result of adding members to the specified role, returned as JSON arrays per input item.
Supports both serial and parallel execution modes based on batching options. Errors per item are either thrown or returned as error messages depending on continueOnFail setting.
Examples
Example 1: Add multiple users to a role
Set 'Role ID' to target role's ID; provide 'Body' with roleId matching the Role ID and an array of user IDs in userIds; optionally configure batching for large sets.