result.append("\n0\n0\n");
}
result.append(instanceId);
} else if (command.equals("usercount")) { // get number of useraccounts counter
Manager secMgr = ManagerFactory.getManager();
SecurityGroup olatuserGroup = secMgr.findSecurityGroupByName(Constants.GROUP_OLATUSERS);
int users = secMgr.countIdentitiesOfSecurityGroup(olatuserGroup);
int disabled = secMgr.getIdentitiesByPowerSearch(null, null, true, null, null, null, null, null, Identity.STATUS_LOGIN_DENIED).size();
result.append(users-disabled).append("\n"); // number of active users
result.append(disabled).append("\n"); // number of disabled users
result.append("0\n");