飞连 icon

飞连

飞连开放平台 API 集成,支持部门与成员、Wi-Fi、终端管理

部门与成员 → 添加角色成员

AI-generated

Summary

Add one or more users as members to a specific role within departments, optionally specifying effective time range for their membership.

Inputs

  • 角色 ID (required) — The role ID to which users will be added as members, in format 'or_xxx'.
  • 部门 ID 列表 — Comma-separated list of department IDs, each in format 'od_xxx', to associate users within specified departments.
  • 用户 ID 列表 — Comma-separated list of user IDs, each in format 'ou_xxx', representing users to add to the role.
  • 生效开始时间 — Unix timestamp in seconds representing membership start time; 0 means start immediately.
  • 生效结束时间 — Unix timestamp in seconds representing membership expiration time; 0 means permanent membership.
  • Options.batching — Batching configuration to control parallel requests including batch size and interval.
  • Options.timeout — Timeout in milliseconds to wait for server response before aborting request; 0 disables timeout.

Output shape

a list of operation results in JSON format, one per input item

Supports batching with configurable concurrency and interval. Each result corresponds to the processed input item. Errors are returned as error objects within the execution data if continueOnFail is enabled.

Links

Discussion