AnsweredAssumed Answered

Create user webscript - works but....

Question asked by iann on Feb 2, 2010
Latest reply on Feb 3, 2010 by iann

I've created a simple webscript that creates users - below is a test sample. All work's well and i'm about to expand the functionality further, but I have an error whenever I try to delete a user that's been created using the script.

It is:

Unable to delete the User object associated with the Person. This is not an error if an external authentication mechanism such as NTLM was previously active.
Failed to delete User due to error: 01020006 User name does not exist:

Any help would be greatly appreciated!


model.firstName = "Test";
model.lastName = "User";
model.emailAddress = "";

var user = people.createPerson(model.emailAddress);["cm:firstName"] = model.firstName;["cm:lastName"] = model.lastName;["usr:password"] = "testtest";;