10-31-2011 11:12 AM
11-02-2011 04:54 AM
04-16-2015 06:48 AM
var strLogFile = "userlist.txt"
//this folder must exist!
var logFolder = companyhome.childByNamePath("/Data Dictionary/Logs");
var logFile = logFolder.childByNamePath(strLogFile);
if (logFile == null) {logFile = logFolder.createFile(strLogFile);
}
logFile.content = "";
var peopleFound = people.getPeople(null);
for (i = 0; i < peopleFound.length; i++) {
username = search.findNode(peopleFound).properties.userName;
//logger.log(username);
objPerson = people.getPerson(username);
//comment following line (and closing "}" ), to list all users
if(people.isAccountEnabled(username)){
logger.log(objPerson.properties.lastName + ";" +objPerson.properties.firstName + ";" + objPerson.properties.userName + ";" + objPerson.properties.email + ";" + people.isAccountEnabled(username));
logFile.content += objPerson.properties.lastName + ";" +objPerson.properties.firstName + ";" + objPerson.properties.userName + ";" + objPerson.properties.email + ";" + people.isAccountEnabled(username) + "\n"
}
}
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.