|
用户管理中新增用户的接口定义(group.swAddUse)能否发一下,我这边调用时一直出错。
var userManager = session.swGetUserManager();
var group = userManager.swGetGroupById(groupId);
var userInfo = {
isGroupManager: isGroup,
isUserManager: isUser,
isDevManager: isDev,
isDevAssManager: isDevAss,
name: name,
email: email,
phone: phone,
groupid: gid,
passwd: name,
description: name,
resources: []
};
console.log("testAddUser: " + JSON.stringify(userInfo));
var rc = group.swAddUser({
info: userInfo,
callback: function (sender, option, data) {
if (option.emms.code == jSW.RcCode.RC_CODE_S_OK) {
var userid = sender.tag;
console.log('add user successly:' + userid);
}
},
tag: userInfo.name
});
|
|