| 程序包 | 说明 |
|---|---|
| com.lark.oapi.service.corehr.v2.model |
| 限定符和类型 | 方法和说明 |
|---|---|
OrgRole.Builder |
OrgRole.Builder.apiName(String apiName)
角色key; - 可以通过页面「飞书人事-设置-组织配置」选择对应自定义组织,「字段配置-字段编码」获取;
示例值:hcm_corehr_xxx
|
OrgRole.Builder |
OrgRole.Builder.employmentIds(String[] employmentIds)
直接授权的员工 ID 列表;- 返回的 ID 类型为 ==people_corehr_id==;-
详细信息可通过[【搜索员工信息】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/search)
或
[【批量查询员工】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/batch_get)
接口获取
示例值:
|
OrgRole.Builder |
OrgRole.Builder.inheritEmploymentIds(String[] inheritEmploymentIds)
由于有上级组织权限而自动获取下级组织权限的员工 ID 列表;- 返回的 ID 类型为 ==people_corehr_id==;-
详细信息可通过[【搜索员工信息】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/search)
或
[【批量查询员工】](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/batch_get)
接口获取
示例值:
|
static OrgRole.Builder |
OrgRole.newBuilder() |
OrgRole.Builder |
OrgRole.Builder.securityGroupId(String securityGroupId)
角色ID; -
可以通过[批量获取角色列表](https://open.larkoffice.com/document/server-docs/corehr-v1/authorization/list)
获取,数据为返回数据中的 data.items.id 值。
|
| 构造器和说明 |
|---|
OrgRole(OrgRole.Builder builder) |
Copyright © 2026. All rights reserved.