04-01-2010 10:05 AM
var newUserName = "tata";
var newUserPassword = "toto";
var result = remote.call("api/people/");
var newUser = people.createPerson(newUserName,"toto", "toto","toto@somedomain.com", newUserPassword ,true);
newUser.properties["cm:homeFolder"]=companyhome.createFolder(newUserName);
newUser.save();
05-06-2010 04:01 AM
var personObj = {
userName: "test",
password: "test",
firstName: "test",
lastName: "test",
email: "test@test.fr",
disableAccount: false,
quota: -1
};
var connector = remote.connect("alfresco");
var result = connector.post("/api/people", jsonUtils.toJSONString(personObj), "application/json");
if (result.status == status.STATUS_OK) {
var pers = eval('(' + result.response + ')');
model.userName = pers.userName;
}
else {
//error
}
05-08-2010 06:37 PM
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.