|
|
@ -23,8 +23,6 @@ userModule = function () {
|
|
|
|
var constants = require("/modules/constants.js");
|
|
|
|
var constants = require("/modules/constants.js");
|
|
|
|
var utility = require("/modules/utility.js").utility;
|
|
|
|
var utility = require("/modules/utility.js").utility;
|
|
|
|
|
|
|
|
|
|
|
|
var userManagementService = utility.getUserManagementService();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var publicMethods = {};
|
|
|
|
var publicMethods = {};
|
|
|
|
var privateMethods = {};
|
|
|
|
var privateMethods = {};
|
|
|
|
|
|
|
|
|
|
|
@ -252,8 +250,8 @@ userModule = function () {
|
|
|
|
log.error("User object was not found in the session");
|
|
|
|
log.error("User object was not found in the session");
|
|
|
|
throw constants.ERRORS.USER_NOT_FOUND;
|
|
|
|
throw constants.ERRORS.USER_NOT_FOUND;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
var userManager = new carbon.user.UserManager(server, tenantId);
|
|
|
|
var userList = userManagementService.getUsersForTenant(carbonUser.tenantId);
|
|
|
|
var userList = userManager.listUsers();
|
|
|
|
|
|
|
|
|
|
|
|
var i, userObject;
|
|
|
|
var i, userObject;
|
|
|
|
for (i = 0; i < userList.size(); i++) {
|
|
|
|
for (i = 0; i < userList.size(); i++) {
|
|
|
|