1. 获取人员信息:getPerson
**
函数说明 | var personObj = this.org.getPerson(name) | |||
---|---|---|---|---|
参数说明 | name : (string)必选,人员的distinguishedName | id | unique | name |
返回值 | personObj 返回人员的对象 | |||
脚本示例 | ||||
var personObj = this.org.getPerson("林玲@linling@P"); return personObj.mobile; |
**
2. 查询下级人员:listSubPerson
函数说明 | var person_array = this.org.listSubPerson (name,[true | false]) | ||
---|---|---|---|---|
参数说明 | name : (string)必选,人员的distinguishedName | id | unique | name nested 布尔 true嵌套下级;false直接下级;默认false; |
返回值 | person_array 返回人员的对象数组 | |||
脚本示例 | ||||
var person_array = this.org.listSubPerson ("林林@linlin@P"); |
**
3. 查询上级人员:listSupPerson
函数说明 | var person_array = this.org.listSupPerson(name,[true | false]) | ||
---|---|---|---|---|
参数说明 | name : (string)必选,人员的distinguishedName | id | unique | name nested 布尔 true嵌套上级;false直接上级;默认false; |
返回值 | person_array 返回人员的对象数组 | |||
脚本示例 | ||||
var person_array = this.org.listSupPerson("林林@linlin@P"); |
**
4. 获取群组的所有人员:listPersonWithGroup
函数说明 | var person_array = this.org.listPersonWithGroup(name); |
---|---|
参数说明 | name : (string)必选,群组名 |
返回值 | person_array 返回人员的对象数组 |
脚本示例 | |
var person_array = this.org.listPersonWithGroup ("人力组"); |
**
5. 获取角色的所有人员:listPersonWithRole**
函数说明 | var person_array = this.org.listPersonWithRole(name); |
---|---|
参数说明 | name : (string)必选,角色名 |
返回值 | person_array 返回人员的对象数组 |
脚本示例 | |
var person_array = this.org.listPersonWithRole("Manager"); |
**
6.获取指定身份的所有人员:listPersonWithIdentity
函数说明
var person_array = this.org.listPersonWithIdentity(name); | |
---|---|
参数说明 | name : (string)必选,身份唯一编码 |
返回值 | person_array 返回人员的对象数组 |
脚本示例 | |
var person_array = this.org.listPersonWithIdentity("李杰@114849cc-eb77-4217-bd15-00b449acbdbb@I"); |
**
7. 查询组织成员的人员:listPersonWithUnit
函数说明 | var person_array = this.org.listPersonWithUnit (name,[true | false]); |
---|---|---|
参数说明 | name : (string)必选,组织的DN或者唯一编码 nested 布尔 true嵌套的所有成员;false直接成员;默认false; |
|
返回值 | person_array 返回人员的对象数组 | |
脚本示例 | ||
var name ="内控管理部@2462e85b-ebad-4cfe-b264-866e80c349bf@U"; var person_array = this.org.listPersonWithUnit(name,true); |