At this moment I am trying to create a new user (cmerson) with the Alfresco JavaScript API. The people API would seem the most logical, however it doesn't have a createUser method. I don't know if a cmerson is considered a "Node", but I tried to create a new person with the createNode method on person.parent
The object person (logged on user) was the "admin" user when testing the script below:
As well as creating a cmerson node, the repository API creates objects in the userStore which the Javascript API is currently unable to do - it will require a specific extension to the API to create users. Please raise a JIRA item for it, or contribute it back if you decide to do it yourself :wink: