轻流OA icon

轻流OA

轻流OA API集成,支持通讯录、任务委托、应用管理、数据操作等功能

通讯录 - 角色 → 增加角色成员

AI-generated

Summary

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.

Links

Discussion