09-08-2009 10:17 PM
model.username = args.username;
model.firstname=args.firstname;
model.lastname=args.lastname;
model.password=args.password;
model.email=args.email;
var person = people.createPerson(args.username);
person.properties["firstName"]=args.firstname;
person.properties["lastName"]=args.lastname;
person.properties["email"]=args.email;
person.properties["userPassword"]=args.password;
person.properties["password"]=args.password;
person.properties["sizeQuota"]="1073741824";
person.properties["disableAccount"]=false;
person.properties["usr:password"] = args.password;
person.properties["usr:credentialsExpire"]=false;
person.properties["usr:userName"]=args.username;
person.properties["usr:name"]=args.username;
person.save();
person.setPermission("Write", args.username);
person.setPermission("Delete", args.username);
person.setPermission("Read", args.username);
person.setOwner(args.username) ;
person.save();
09-09-2009 05:25 AM
09-09-2009 10:46 AM
03-02-2010 06:09 PM
var newUserName = "newUser";
var newUserPassword = "password";
var newUser = people.createPerson(newUserName,"firstName", "lastName","myEmail@somedomain.com", newUserPassword ,true);
newUser.properties["cm:homeFolder"]=companyhome.createFolder(newUserName);
newUser.save();
03-03-2010 06:35 AM
03-09-2010 12:08 AM
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.