viewApiUser = admService.createUser("", "", user, pass);
admService.save(viewApiUser);
}
Role viewerRole = admService.getRoleByName("VIEWER");
Role editorRole = admService.getRoleByName("EDITOR");
IUserRoleManagement urAssoc = MapperRegistry.getInstance().getUserRoleAssociation();
urAssoc.insert(viewApiUser, viewerRole);
urAssoc.insert(viewApiUser, editorRole);
admService.add(viewerRole, viewApiUser);
admService.add(editorRole, viewApiUser);
admService.save(viewApiUser);
}
PaloConnection conToUse = null;