人员信息
Last updated
Was this helpful?
函数说明
var personObj = this.org.getPerson(name)
参数说明
name : (string)必选,人员的distinguishedName | id | unique | name
返回值
personObj 返回人员的对象
脚本示例
var personObj = this.org.getPerson("林玲@linling@P");
return personObj.mobile;
函数说明
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");
函数说明
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");
函数说明
var person_array = this.org.listPersonWithGroup(name);
参数说明
name : (string)必选,群组名
返回值
person_array 返回人员的对象数组
脚本示例
var person_array = this.org.listPersonWithGroup ("人力组");
函数说明
var person_array = this.org.listPersonWithRole(name);
参数说明
name : (string)必选,角色名
返回值
person_array 返回人员的对象数组
脚本示例
var person_array = this.org.listPersonWithRole("Manager");
函数说明
var person_array = this.org.listPersonWithIdentity(name);
参数说明
name : (string)必选,身份唯一编码
返回值
person_array 返回人员的对象数组
脚本示例
var person_array = this.org.listPersonWithIdentity("李杰@114849cc-eb77-4217-bd15-00b449acbdbb@I");
函数说明
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);
Last updated
Was this helpful?
Was this helpful?