| 构造器和说明 |
|---|
Builder() |
| 限定符和类型 | 方法和说明 |
|---|---|
OrgRole.Builder |
apiName(String apiName)
角色key; - 可以通过页面「飞书人事-设置-组织配置」选择对应自定义组织,「字段配置-字段编码」获取;
示例值:hcm_corehr_xxx
|
OrgRole |
build() |
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 |
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)
接口获取
示例值:
|
OrgRole.Builder |
securityGroupId(String securityGroupId)
角色ID; -
可以通过[批量获取角色列表](https://open.larkoffice.com/document/server-docs/corehr-v1/authorization/list)
获取,数据为返回数据中的 data.items.id 值。
|
public OrgRole.Builder apiName(String apiName)
示例值:hcm_corehr_xxx
apiName - public OrgRole.Builder securityGroupId(String securityGroupId)
示例值:7034393015968122400
securityGroupId - public OrgRole.Builder employmentIds(String[] employmentIds)
示例值:
employmentIds - public OrgRole.Builder inheritEmploymentIds(String[] inheritEmploymentIds)
示例值:
inheritEmploymentIds - public OrgRole build()
Copyright © 2026. All rights reserved.