Hi, I have a little problem, I want to create a user thru webscript and found out that there is a People API but there is only a createPerson option. Now my problem is how to set the password for the user to be created?
A "person" is not a "user" (each user has an associated "person" object though). The "person" doesn't include account information other than the username (to match it to a "user").
In short: you cannot create users via JavaScript, you have to use Java; either coding your webscript in Java (see Java-backed Web Scripts in the doc; that's what Alfresco does when inviting external users from Share) or creating a BaseScopableProcessorExtension-derived object with a createUser method, that you make available for scripting (see Adding Custom Script APIs, that's what we've done on a project, because we already had plenty of other extensions).
(links I gave are for pre-3.0 releases, but the same applies for Alfresco 3)